Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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.

plus de 9 ans il y a | 0

Réponse apportée
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)...

plus de 9 ans il y a | 0

| A accepté

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

plus de 9 ans il y a | 0

| A accepté

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

Réponse apportée
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?

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 6

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
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

plus de 9 ans il y a | 0

Réponse apportée
[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 ...

plus de 9 ans il y a | 0

A soumis


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

plus de 9 ans il y a | 1 téléchargement |

5.0 / 5
Thumbnail

Réponse apportée
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,...

plus de 9 ans il y a | 2

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

Réponse apportée
How to convert char string to bit string
str='100100 1110011 1100100 1100001 1100100' str=regexprep(str,' ','') result = str-'0'

plus de 9 ans il y a | 2

Charger plus