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!