calling a GUI function inside a IF statement

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.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 2월 13일
편집: Azzi Abdelmalek 2013년 2월 13일

0 개 추천

Use
if isequal(passx ,[0; 0; 0; 0])
Post the function that causes an error and how did you call it?

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

질문:

2013년 2월 13일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by