flipud script problem
2 次查看(过去 30 天)
显示 更早的评论
http://www.mathworks.com/matlabcentral/answers/1875-segmenting-using-x-y-co-ordinate-axis
I used the flipud function given in this answer earlier and it worked perfectly. Now for some reason everytime I try to execute this program or the version I have created of it, the interpreter stops at the 'axis xy' line. What could be the problem ?
2 个评论
Matt Tearle
2011-3-18
what do you mean "stops"? an error? a breakpoint? it just doesn't seem to do what you expect the remaining lines to do?
Jan
2011-3-18
If you are using this method, because it works for you (earlier), then it would be a good idea to accept the given answer in this thread.
采纳的回答
Paulo Silva
2011-3-19
axis is a matlab function and you gave your script the same name, when you do axis xy your are actually calling your own script instead of the matlab function, the error comes up because your script isn't a function thus not accepting arguments (xy).
1 个评论
Matt Tearle
2011-3-19
Bingo. Solution: change the name of script to something other than axis.
Tip: before you save your script as foo.m, enter
which foo
in the Command Window to see if something called foo is already on the MATLAB path. If so, pick a different name.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!