MATLAB Answers

0

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

Asked by Ragini Narasimha on 17 May 2019
Latest activity Commented on by Walter Roberson
on 23 May 2019
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

What is validate? I suspect it might be a variable rather than a function

Sign in to comment.

1 Answer

Answer by Walter Roberson
on 17 May 2019

[Left_V, Right_V] = deal( validate(picture2) );

  6 Comments

i am not sure as when i ran validate on the matlab doci did not arrive at any answer
which validate -all % what does this show?
it says its an invalid expression when i gave the above syntax
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.