can I use elements of array in if statement directly?
Show older comments
Hello
I have an array (it's name is fullpath) and I want to compare the elements of it in If condition like bellow
if ((fullpath(i-1)-1) > y)
col1=y ;
else
col1=(fullPath(i-1)-1);
end
but I have this error
Undefined function 'fullpath' for input arguments of type 'double'.
Could you help me?
thanks alot
Accepted Answer
More Answers (0)
Categories
Find more on Geometric Geodesy 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!