loop5=0;while~loop5 parameters=input('Parameters Data( manufacturer or test ) = ','s'); if ~ismember(parameters,{'manufacturer','test'}) loop5 = 0;else loop5 = 1;endendif parameters == 'test' disp('Test Data'); Pnl=input ('No load power input= '); Inl=input ('No load line current= '); Pbr=input ('Lock rotor power input= '); Ibr=input ('Lock rotor line current= '); elseif parameters == 'manufacturer' disp('Manufacturers data'); R1=input('R1= '); R2=input('R2= '); X1=input('X1= '); X2=input('X2= '); Rc=input('Rc= '); Xc=input('Xc= ');elseendIf I will input manufacturer Matrix dimensions must agree error appear.Thank you for your help
MATLAB: Matrix dimensions must agree error.
if statement for string
Best Answer