Very interesting topic... glad be part of this multi-output discussion.
Wow...never thought this one also do the trick. Awesome!
Why does str2num work for anonymous function?
Don't be confused by the name "str2num", which might give you a wrong impression that this function only works for str to number conversion. In fact, it is more powerful because it supports evaluation of any valid string or character represented MATLAB expressions in much the same way eval does. The underlying implementation of str2num is indeed based on eval. Check the documentation and source file for more details.
Cheating a bit. I believe test suite need some "try...catch" to prevent such behaviour.
nevertheless, didn't see this coming. never expected that kinda structure would work.
@Jan Orwat, Nice! Everything is changes from star to star.
Find the "ordinary" or Euclidean distance between A and Z
Gauss Eliminate 2-by-2 example
Return fibonacci sequence do not use loop and condition version 2
Return fibonacci sequence do not use loop and condition
Compute the intersect point of line and plan
Solve Sudoku puzzle step by
Return fibonacci sequence do not use loop and condition version 3
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office