Respondida
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...

más de 9 años hace | 0

Respondida
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.

más de 9 años hace | 0

Respondida
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)...

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

Resuelto


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...

más de 9 años hace

Resuelto


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...

más de 9 años hace

Resuelto


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...

más de 9 años hace

Resuelto


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...

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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...

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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...

más de 9 años hace

Resuelto


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...

más de 9 años hace

Resuelto


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...

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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...

más de 9 años hace

Resuelto


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...

más de 9 años hace

Respondida
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?

más de 9 años hace | 0

Respondida
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...

más de 9 años hace | 6

| aceptada

Respondida
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...

más de 9 años hace | 0

Respondida
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...

más de 9 años hace | 2

| aceptada

Respondida
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

más de 9 años hace | 0

Respondida
[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 ...

más de 9 años hace | 0

Enviada


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

más de 9 años hace | 1 descarga |

5.0 / 5
Thumbnail

Respondida
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,...

más de 9 años hace | 2

Resuelto


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

más de 9 años hace

Resuelto


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...

más de 9 años hace

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

más de 9 años hace | 2

Cargar más