Loren on the Art of MATLAB

Archive for December, 2008


Loren Shure works on design of the MATLAB language at The MathWorks. She writes here about once a week on MATLAB programming and related topics.

  • Loren: Mark- Take a look at cellfun and think about using the function sum. Like this… >> a =...
  • Mark Mikofski: Loren, I’m looking for an elegant, and generalized way to sum each cell in a cell array of...
  • OysterEngineer: Loren, I frequently accumulate index values within an if statement, nested within a for loop. So,...
  • Ellis D. Cooper: Loren - Thank you for your replies. In my application two or more different iterations of the loop...
  • OysterEngineer: I love this type of post since each solution shows something about the background of the developer....
  • Ninad: I thought that following code should work fine global test; test.val=10; parfor i=1:10 global_test_funct...
  • Loren: Ellis- You can’t control the order of the parfor at all. Why is their an efficiency of uniform rand...
  • Ellis D. Cooper: It says somewhere about parfor that the order in which iterations are performed is not guaranteed....
  • Loren: Dirk- It depends on too many things to answer unequivocally. Please contact technical support with as much...
  • Dirk: Hi All Is there a way to configure MATLAB figures to display unicode characters correctly when plotted using...

These postings are the author's and don't necessarily represent the opinions of The MathWorks.