Insufficient number of outputs from right hand side of equal sign to satisfy assignment.

5 views (last 30 days)
this is my code, when i run the second line it is showing the above error , what is the procedure to rectify it.
picture2=double(picture2);
[Left_V,Right_V]=validate(picture2);
Left_V = Left_V*0.026;
Right_V = Right_V*0.026;
bb=Left_V/Right_V;
fprintf('Pixels in Centimeter(Right_V) %0.03f',Right_V);
fprintf('Pixels in Centimeter (Left_V) %0.03f',Left_V);
fprintf('LV/RV ratio is %0.03f',bb)

Answers (1)

Walter Roberson
Walter Roberson on 17 May 2019
[Left_V, Right_V] = deal( validate(picture2) );
  6 Comments
Ragini Narasimha
Ragini Narasimha on 18 May 2019
which validate -all % what does this show?
it says its an invalid expression when i gave the above syntax
Walter Roberson
Walter Roberson on 23 May 2019
Which MATLAB release are you using?
>> which validate -all % what does this show?
/Applications/MATLAB_R2019a.app/toolbox/matlab/graphics/printing/private/validate.m % Private to printing
/Applications/MATLAB_R2019a.app/toolbox/globaloptim/globaloptim/private/validate.m % Private to globaloptim
/Applications/MATLAB_R2019a.app/toolbox/matlab/graphics/+matlab/+graphics/+interaction/+uiaxes/Datatips.p % matlab.graphics.interaction.uiaxes.Datatips method
/Applications/MATLAB_R2019a.app/toolbox/matlab/graphics/+matlab/+graphics/+interaction/+uiaxes/PanBase.p % matlab.graphics.interaction.uiaxes.UnconstrainedPan method
/Applications/MATLAB_R2019a.app/toolbox/matlab/graphics/+matlab/+graphics/+interaction/+uiaxes/Drag.p % matlab.graphics.interaction.uiaxes.Drag method
/Applications/MATLAB_R2019a.app/toolbox/matlab/graphics/+matlab/+graphics/+interaction/+uiaxes/RulerPan.p % matlab.graphics.interaction.uiaxes.RulerPan method
/Applications/MATLAB_R2019a.app/toolbox/matlab/graphics/+matlab/+graphics/+interaction/+uiaxes/Rotate.p % matlab.graphics.interaction.uiaxes.Rotate method
validate is a Java method % com.mathworks.mlwidgets.importtool.TextImportClient method
validate is a Java method % com.mathworks.mlwidgets.importtool.ImportClient method
validate is a Java method % com.mathworks.widgets.desk.DTClientBase method
validate is a Java method % com.mathworks.mwswing.MJPanel method
validate is a Java method % javax.swing.JPanel method
validate is a Java method % javax.swing.JComponent method
validate is a Java method % java.awt.Container method
validate is a Java method % java.awt.Component method
validate is a Java method % javax.swing.JFileChooser method
validate is a Java method % com.mathworks.mlwidgets.importtool.SpreadsheetImportClient method
validate is a Java method % com.mathworks.widgets.wizard.WizardFrame method
validate is a Java method % com.mathworks.mwswing.MJFrame method
validate is a Java method % javax.swing.JFrame method
validate is a Java method % java.awt.Frame method
validate is a Java method % java.awt.Window method
validate is a Java method % com.mathworks.hg.util.InfoPanel method

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!