Problem with function. Can you help? Thanks.

Question is withdrawn. Problem solved.

답변 (1개)

bio lim
bio lim 2016년 12월 1일

0 개 추천

I don't understand why there are several if statements with the same condition, e.g.,
if (nargin==2)
counter =0;
end
if nargin ==2
in1 = varargin(1)
in2 = varargin(2)
no = 2
end
You should carefully plan your if statements again, and try to group them as many as possible.

이 질문은 마감되었습니다.

제품

태그

질문:

2016년 12월 1일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by