why mat2gray function isnt working in my matlab?
显示 更早的评论
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 个评论
Dyuman Joshi
2023-10-4
Do you have access to the Image Processing Toolbox for the license you are using to run this code?
Roni
2023-10-4
Dyuman Joshi
2023-10-4
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!