Answered
Graphs Not Showing Up
You just see the last two ('3' and '4') because the values are the same, so curve are superimposed and you just see the last one...

9 years ago | 0

Answered
How to reshape an matrix made from an input turned into a double value?
Your code only works for 4-characters long strings because you are reshaping them to 2x2 matrix.

9 years ago | 0

Answered
How to plot the relationship between two unknown values as those values change?
For every Y~=T, the equation above is true for X=WZ/(Y-T)...

9 years ago | 0

| accepted

Answered
random data generation using mean and identity matrix
Just transpose the solution: MU=zeros(1,10); SIGMA=eye(10); xTrain = mvnrnd(MU,SIGMA,1000)';

9 years ago | 0

| accepted

Solved


Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

9 years ago

Solved


Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

9 years ago

Solved


Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<http://upload.wikimedia.org/wikipe...

9 years ago

Solved


Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<http://upload.wikimedia.org/wikipe...

9 years ago

Solved


Generate a Parasitic Number
This problem is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/156-parasitic-numbers Problem 156>. ...

9 years ago

Solved


Find vampire numbers
A <http://en.wikipedia.org/wiki/Vampire_number vampire number> is a number v that is the product of two numbers x and y such th...

9 years ago

Solved


Polygonal numbers
The task of <http://www.mathworks.co.uk/matlabcentral/cody/problems/5 Problem 5> is to calculate triangular numbers. By playing ...

9 years ago

Solved


N-th Odious
Given index n return n-th <https://oeis.org/A000069 odious number>.

9 years ago

Solved


Polite numbers. N-th polite number.
A polite number is an integer that sums of at least two consecutive positive integers. For example _7 = 3+4_ so 7 is a polite...

9 years ago

Solved


Is this number Munchhausen Narcissistic?
In this problem, simply return 1 if a supplied number is Munchhausen narcissistic or 0 if not. Example 153 is narcissistic...

9 years ago

Solved


Smith numbers
Return true if the input is a Smith number in base ten. Otherwise, return false. Read about Smith numbers at <http://en.wikipedi...

9 years ago

Solved


Evil Number
Check if a given natural number is evil or not. Read more at <https://oeis.org/A001969 OEIS>.

9 years ago

Solved


Kaprekar numbers
Test if the input is a Kaprekar number: <http://mathworld.wolfram.com/KaprekarNumber.html>. Return a logical true or false. ...

9 years ago

Solved


Parasitic numbers
Test whether the first input x is an n-parasitic number: <http://en.wikipedia.org/wiki/Parasitic_number>. ( _n_ is the second in...

9 years ago

Solved


Determine if a Given Number is a Triangle Number
*Description:* Determine if the elements of an input array are triangle numbers and return the result as an array with the sa...

9 years ago

Answered
Compute a new vector dependent on two others and a random probability
By doing x==0.2 | y==0.2 you are testing that ALL theelements of x or y equal 0.2. Is that really what you want?

9 years ago | 0

Answered
What is the logic behind fzero and fsolve which make fsolve's speed faster than fzero?
The functions fsolve and fzero are not meant to solve the same problem. Specifically: # fzero: It finds the root of a functio...

9 years ago | 6

| accepted

Answered
questions about solving a linear equations ( \ vs pinv vs least-square)
Your matrix X has full rank, so the difference between the two methods shouldn't be so high. Running it on my pc I indeed obtain...

9 years ago | 0

Answered
How to plot semilog y graphic in Matlab?
The matlab function semilogy() is what you need: <https://it.mathworks.com/help/matlab/ref/semilogy.html?searchHighlight=semi...

9 years ago | 2

| accepted

Answered
sort X and Y columns according to a repeated string in a 3rd column and scatter plot
Get the "subject" column in one array containing data of all people, as follows: allsubjects = data(:).subject

9 years ago | 0

Answered
[V,D]=eig(S1,S2) ?
They are not captured by the syntax of eig(A,B). Let me explain you why: The call [V,D] = eig(A,B) returns diagonal ...

9 years ago | 0

Submitted


N-D array reduction by arbitrary function
Implements a fast reduction of N-D array that computes arbitrary function to sub-blocks of A

9 years ago | 1 download |

5.0 / 5
Thumbnail

Answered
a matlab code of getting a value uniformly at random from a the set {-1,1}
If you look for a real number in the interval [-1,1], here is it n = 2*rand-1 If you look for an integer either 1 or -1,...

9 years ago | 2

Solved


nth Rational Number
Return the nth rational number. This is the inverse to Problem <http://www.mathworks.com/matlabcentral/cody/problems/1471 1...

9 years ago

Solved


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

9 years ago

Answered
How to convert char string to bit string
str='100100 1110011 1100100 1100001 1100100' str=regexprep(str,' ','') result = str-'0'

9 years ago | 2

Load more