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 Comments

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
>> 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

Sign in to comment.

Answers (1)

Steven Lord
Steven Lord on 16 Mar 2021
Rename the file you created named newplot.m that's taking precedence over the newplot function included in MATLAB.

1 Comment

i renamed it, changed the file location. i think it needs to be upgrade.

Sign in to comment.

Asked:

on 16 Mar 2021

Commented:

on 17 Mar 2021

Community Treasure Hunt

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

Start Hunting!