Imshow() error 2018a matlab

>> I = imread('pout.tif');
>> imshow(I)
Error: File: newplot.m Line: 1 Column: 20
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct
matrices, use brackets instead of parentheses.
Error in imshow (line 292)
ax_handle = newplot;
i am facing this issue for 2, 3 days. i did everything , but still facing this issue.

2 commentaires

Image Analyst
Image Analyst le 16 Mar 2021
You should have called tech support. You have a maintenance contract right? If so, better yet, just upgrade.
Otherwise, what does this show:
>> which -all newplot
C:\Program Files\MATLAB\R2020b\toolbox\matlab\graphics\axis\newplot.m
Saddam Hussain
Saddam Hussain le 17 Mar 2021
>> which -all newplot
C:\Users\sadam hussain\Documents\MATLAB\newplot.m
C:\Program Files\MATLAB\R2018a\toolbox\matlab\graphics\newplot.m % Shadowed
It shows this

Connectez-vous pour commenter.

Réponses (1)

Steven Lord
Steven Lord le 16 Mar 2021

0 votes

Rename the file you created named newplot.m that's taking precedence over the newplot function included in MATLAB.

1 commentaire

Saddam Hussain
Saddam Hussain le 17 Mar 2021
i renamed it, changed the file location. i think it needs to be upgrade.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by