- Why have you entered the input argument to the function all as a string?
- The size of rawdata , colmax, and rowmax (scalar, matrix, etc).
- What does "this equals one" mean?
- What is greaterthan ?
- What is the output that you need? We cannot "fix" the current output if we don't even know what the "right" output is.
How to fix If && statement for array?
1 次查看(过去 30 天)
显示 更早的评论
I am trying to get this to work:
if all(' rawdata > colmax && rawdata > rowmax'); midpointmap = greaterthan (this equals one);
end
disp(midpointmap);
midpointmap is set to all zeros as of now
all ive managed to get is either all zeros or just a single number one.
any ideas how to fix this?
1 个评论
Stephen23
2014-10-2
The code you have given would not work. Please edit your question and use the text formatting tools (above the text box) to display your exact code. Please provide us with more information, in particular:
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!