Insufficient number of outputs from right hand side of equal sign to satisfy assignment.
5 views (last 30 days)
Show older comments
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)
2 Comments
Walter Roberson
on 17 May 2019
What is validate? I suspect it might be a variable rather than a function
Answers (1)
Walter Roberson
on 17 May 2019
[Left_V, Right_V] = deal( validate(picture2) );
6 Comments
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
See Also
Categories
Find more on Call Java from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!