assume w=[1 2 2 2] q=[2 1 1 1]if w(i)==1 do somehingelse look to q(i)if q(i)==1do some thingelsedo somthingend end
MATLAB: What is the best way to execute 2 if conditions in MATLAB
MATLABvectors
MATLABvectors
assume w=[1 2 2 2] q=[2 1 1 1]if w(i)==1 do somehingelse look to q(i)if q(i)==1do some thingelsedo somthingend end
Best Answer