help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: vectorization help


From: William Krekeler
Subject: RE: vectorization help
Date: Mon, 3 Oct 2011 19:10:01 +0000

Jordi,

Thanks for the useful and very informative response. That definitely works. 
I'll have to read more on broadcasting to see if I can apply it elsewhere. 

My code has to be cross-compatible with ML. As an FYI the bsxfun version will 
work in matlab 7.8.0.347:
    Cube = bsxfun(@rdivide, permute(RC, [1, 3, 2]), Cube);
but the shorthand version will not:
    Cube = permute(RC, [1, 3, 2]) ./ Cube;

Again, thanks for the help.

William Krekeler

reply via email to

[Prev in Thread] Current Thread [Next in Thread]