-
4 Comments
Show
1 older comment
Neural Nomad2012年5月8日
why does this work, but simply having the vector [0.25; 0.05; 0.1; 0.01] does not?
Naveen Gowdayyanadoddion 10 Jul 2012
Any ans for Neural Nomad's question. Pls give some reasoning.
Cris Luengoon 14 Jul 2012
str2num evaluates to that vector, so just putting in the vector works also. But Cody just thinks that this code is "shorter": evaluating a function with one argument is less nodes than concatenating 4 values.
Temelon 23 Mar 2013
Although I appreciate the effort, "size" calculation is B.S. It should calculate time it takes to run the function.
Suggested Problems
Select every other element of a vector
25354 Solvers
2887 Solvers
12716 Solvers
426 Solvers
372 Solvers
More from this Author95
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!