Info

This question is closed. Reopen it to edit or answer.

Problem with function. Can you help? Thanks.

1 view (last 30 days)
DJ V
DJ V on 1 Dec 2016
Closed: MATLAB Answer Bot on 20 Aug 2021
Question is withdrawn. Problem solved.

Answers (1)

bio lim
bio lim on 1 Dec 2016
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.

This question is closed.

Products

Community Treasure Hunt

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

Start Hunting!