using imread on script get not valid name error, but no errors on command window
Show older comments
Hey,
I am writing a simple script:
I=imread("original.jpg")
imshow(I)
But then i press run, i get an error:

Workspace, and pahts are setup correctly. Because then I copy paste same command in command window and it runs flowlessly
Looked at all the forums, and does not find anything helpfull.
As I am new on matlab, so maybe i am missing some simple detail ?
1 Comment
Luca Ferro
on 3 Apr 2023
what's the name of your script?
Accepted Answer
More Answers (0)
Categories
Find more on Downloads 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!