Solved


Big numbers, repeated least significant digits
This problem builds off of <http://www.mathworks.com/matlabcentral/cody/problems/3077-big-numbers-least-significant-digits/ Prob...

12 dagar ago

Solved


Equation Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on times that include the four bas...

13 dagar ago

Solved


Arrange the names in alphabetical order (2)
Arrange the list of names in alphabetical order, following the German standard <https://de.wikipedia.org/wiki/Alphabetische_Sort...

13 dagar ago

Solved


Gaussian elimination
Get the Gussian elimination of the Matrix Given You cannot use built-in Matlab functions triu :)

13 dagar ago

Solved


Measure a Special Distance
Given an n-by-2 matrix with positive and negative numbers, return an n-by-n matrix in the manner of the function template.

13 dagar ago

Solved


Spot the rectangle (Part 2)
This problem is related to the <http://bit-player.org/2009/the-17x17-challenge 17x17 challenge>. See also <http://www.mathworks....

15 dagar ago

Solved


Spot the rectangle
This problem is related to the 17x17 challenge. Given a matrix filled with ones and zeros, determine whether or not any rectangl...

15 dagar ago

Solved


Spiral In
Create an m by n matrix filled with sequential integers starting from 1 and arranged in a counterclockwise spiral that hugs the ...

15 dagar ago

Solved


Matrix Rotation
You are given a 2D matrix of dimension [m,n] and a positive integer r. You have to rotate the matrix r times and print the resul...

15 dagar ago

Answered
How to generate random variable theta for F(theta)=N(1 - (mu*B)/(k*T)*cos(theta)). For N=1 and mu*B/k*T=0.01
syms theta fplot(1-0.01*cosd(theta)) xlim([0 180]) ylim([0.99 1.015])

17 dagar ago | 1

Answered
finding the orthogonal vectors for a series of vectors
Another method will be - for i=1:size(vec,1) v=vec(i,:); %generate a random vector r=rand(1,3); %check it ...

17 dagar ago | 3

Solved


Decipher the message - same key for all digits
You will be given a input number (eg) x='gdkkn' you have to figure out the dechiper key and match it with given input and deci...

17 dagar ago

Answered
Plotting performance vs inlet temp for jet engine and measuring performance as dh as shown. What am I doing wrong?
The for loop indexing is incorrect close all clear all P1 = 101 ;%pressure in kpa T1 = 298;%temperature in kelvin n = 1.4; ...

18 dagar ago | 1

Solved


Decimation - Optimized for speed
This problem is similar to http://www.mathworks.com/matlabcentral/cody/problems/1092-decimation, only this time the score will b...

18 dagar ago

Solved


Decimation
When dealing to the Roman Army, the term decimate meant that the entire unit would be broken up into groups of ten soldiers, and...

18 dagar ago

Solved


Josephus Survivor
The <http://en.wikipedia.org/wiki/Josephus_problem Josephus Challenge> is to find the position that is the last remaining when e...

18 dagar ago

Answered
To split class in a cell array
Looks like a simple variable assignment %random data y=num2cell(rand(10,30)) class_1 = y(:,1:15) class_2 = y(:,16:30) %if y...

19 dagar ago | 1

| accepted

Solved


Permute the unique values of a vector without sorting
Given a vector A, return the matrix B, wherein each row contains a permutation of the unique values in original vector while ret...

19 dagar ago

Answered
Splitting n by 1 matrix
mat2cell approach (gives 1x24 instead of 24x1) A=transpose(1:12552); B=mat2cell(reshape(A,24,[])',ones(1,12552/24)) B{3}'

21 dagar ago | 0

Solved


Determine whether one vector is a subset of another
While bumbling through a pair of problems in the Number Theory group, I wrote code to determine whether a vector is a subset of ...

21 dagar ago

Solved


Nuemann Polynomials
Return the coefficients of nth (n>=0) Nuemann polynomial, (a sequence in 1/t) as polynomials in alpha. The expected output is a...

22 dagar ago

Problem


Nuemann Polynomials
Return the coefficients of nth (n>=0) Nuemann polynomial, (a sequence in 1/t) as polynomials in alpha. The expected output is a...

22 dagar ago | 1 | 3 solvers

Solved


Draw a fancy '7' in a zero matrix!
Given a x-by-x matrix filled with zeros (x is odd and > 3). Use 7s to draw a number 7 into it! Like this: x = 5, y = 7 7 7 7 7...

23 dagar ago

Solved


Scorer's Function
Evaluate the Scorer's function for a given input. The expected output is Gi(x). Note - The precision will vary for test cases...

23 dagar ago

Solved


Absolute Value of the Product of Complex Numbers
Find the absolute value (modulus) of the product of two complex numbers given by a + bi and c + di.

23 dagar ago

Problem


Scorer's Function
Evaluate the Scorer's function for a given input. The expected output is Gi(x). Note - The precision will vary for test cases...

23 dagar ago | 2 | 5 solvers

Question


integral() not working properly?
I am trying to integrate a function, however integral() doesn't seem to give the correct value - f=@(t) sin(t.^3./3); y=integ...

24 dagar ago | 1 answer | 0

1

answer

Solved


Draw 'W'
For any given n, return a matrix of height n and width 4n-3 containing a W of ones. Example: n=2 ans= [1 0 1 0 1 0 1 0 1 0...

24 dagar ago

Answered
long integers in matlab
You can use Java. import java.math.* y=BigInteger('10').pow(100) z=BigInteger('10').pow(100).add(BigInteger('1')) sub=z.su...

24 dagar ago | 0

Answered
Changing elements of row after certain element
For a matrix run a loop through the rows x=[-1,-0.65,-0.45,0,0.3,0.8,1,0.4,0.2,-0.1] %Code edited according to the question x...

25 dagar ago | 1

Load more