what's the "str2num" mean?
str2num means "convert string to number"; even more cryptic is the fact that "str2num 1:10" is equivalent to "str2num('1:10')" (Matlab allows you to omit the single quotes and parentheses when using functions that take character strings as arguments).
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x_correct = [1 2 3 4 5 6 7 8 9 10];
assert(isequal(oneToTen,x_correct))
|
1421 Solvers
605 Solvers
373 Solvers
Solve a System of Linear Equations
3447 Solvers
2030 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!