When I type into command window, license('test', 'image_toolbox'), it returns 1.
My code reads and displays images by imread, imshow. But it when I use mat2gray in the next line, there's an error "'mat2gray' requires Image Processing Toolbox."

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 15 Aug. 2024

0 Stimmen

You have the Image Processing Toolbox licensed but you do not have it installed

2 Kommentare

Image Analyst
Image Analyst am 15 Aug. 2024
Either reinstall the complete MATLAB, or use the Add-ons/Get Add ons button on the Home tab of the tool ribbon to install just the Image Processing Toolbox.
Lucy
Lucy am 15 Aug. 2024
great, works now! Thank you both :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Produkte

Version

R2023a

Gefragt:

am 15 Aug. 2024

Kommentiert:

am 15 Aug. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by