Non-singleton dimensions of the two input arrays must match each other using bsxfun
Show older comments
Hi,
I have 4D data with dimensions mydata=[ 156 , 192 , 26 , 41]. I have also an array of values which I import in Matlab as .txt file. The array has dimensions array=[1, 41].
I am using the bsxfun like this:
mydata = bsxfun(@rdivide, mydata, mydata(:,:,:,find(array==0)));
I am keep getting the error but I don't understand why. Can someone help with that?
Thanks a lot in advanced.
Accepted Answer
More Answers (0)
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!