why mat2gray function isnt working in my matlab?
Ältere Kommentare anzeigen
this is the code:
clear all
load('BrainTumors.mat');
imagesc(MRI{1});
colormap('gray')
a = mat2gray(MRI{1});
the last row isnt running and thats the error:
"Undefined function 'mat2gray' for input arguments of type 'int16'.
Error in ExecriseSolution1 (line 5)"
i was able to run this code in other computer. how do i fix it?
3 Kommentare
Dyuman Joshi
am 4 Okt. 2023
Do you have access to the Image Processing Toolbox for the license you are using to run this code?
Roni
am 4 Okt. 2023
Dyuman Joshi
am 4 Okt. 2023
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!