calling a GUI function inside a IF statement
Show older comments
i have to call a function when the if statement s satisfied. but when i call a function inside the function it shows a error underscore stating that "FUNCTION keyword use is invalid here.this will cause later message about error"
if passx == [0; 0; 0; 0]
if passy == [0; 0; 0; 0]
%function xxxx
else
disp('no name')
end
end
So experts pl help me out.
Answers (1)
Azzi Abdelmalek
on 13 Feb 2013
Edited: Azzi Abdelmalek
on 13 Feb 2013
Use
if isequal(passx ,[0; 0; 0; 0])
Post the function that causes an error and how did you call it?
Categories
Find more on Loops and Conditional Statements 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!