Risposto
what is the wrong here
David is probably right, but I made a different assumption about what equation you were trying to solve: h = 0.25; x = 0:h:1; ...

oltre 3 anni fa | 0

Risposto
Referencing and extracting with conditions
I think this should work: function y = combo(combomatrix,row) % combomatrix is Nx3 % row is integer = row number of parts mat...

oltre 3 anni fa | 0

| accettato

Risposto
what is the meaning of this operation?
Melin, The matrix d has an error in it, because the 2nd row has more columns than the 1st and 3rd row. But, supposed we use d ...

oltre 3 anni fa | 1

Risposto
How to get Matlab to return answers with ten-digit accuracy?
The answers returned by Matlab actually have the full available precision, but for display purposes they are printed in the comm...

oltre 3 anni fa | 0

Risposto
Factorial without the Command
function f = Factorial(n) % if n = 0 || n = 1 f = 1; elseif n >= 1 a = 1:n; f = prod(a); end

oltre 3 anni fa | 0