why it is showing Undefined function 'MyEntropy' for input arguments of type 'uint8'.? please say whatt is the error ?
조회 수: 1 (최근 30일)
이전 댓글 표시
clc;
clear all
close all
b=imread('Cameraman.bmp');
MyEntropy(b);
hold on
title('Relative count of pixel for cameraman')
hold off
댓글 수: 0
답변 (1개)
Walter Roberson
2016년 1월 26일
There is no Mathworks-provided routine named "MyEntropy", and there is no routine by that name in the File Exchange either. The closest is that there is a routine "myEntropy" at the bottom of http://www.mathworks.com/matlabcentral/fileexchange/32428-globalmit-toolbox/content/GlobalMIT_1.0_Release/globalMIT.m but it uses different arguments than your call provides.
You will need to create a file named MyEntropy.m to implement the routine yourself, and that MyEntropy.m will need to be somewhere on your MATLAB path. If you have already written such a routine, use pathtool() to ensure the appropriate directory is on your path.
It is possible that you wrote a MyEntropy function but that it is inside a different .m file. It is not normally possible to call a function inside a different .m file unless the .m file has exactly the same name as what you are trying to call.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!