ERRORS IN MY CODE PLESE CORRECT ME.

I HAVE ERRORS IN MY CODE ..PLESE CORRECT THEM....
my code is attached.
errors are
Undefined function 'randsrc' for input arguments of type 'double'.
Error in top_design>pushbutton3_Callback (line 180) datain=randsrc(1,16,0:0);
Error in gui_mainfcn (line 96) feval(varargin{:});
Error in top_design (line 42) gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)top_design('pushbutton3_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback....

답변 (1개)

Image Analyst
Image Analyst 2014년 1월 2일

0 개 추천

On the command line, type
which -all randsrc
What does it say? You may not have the toolbox it is in. What does
ver
say? That will list your toolboxes.

댓글 수: 4

ajay kumar
ajay kumar 2014년 1월 2일
it says 'randsrc' not found.
Image Analyst
Image Analyst 2014년 1월 2일
Well then, you don't have whatever toolbox it's in, if it's in one, or you don't have the m-file that someone was supposed to provide you with, if you're running someone's custom code they gave you.
ajay kumar
ajay kumar 2014년 1월 2일
no.actually i implemented this code by searching some links in youtube..
Walter Roberson
Walter Roberson 2014년 1월 2일
randsrc is from the Communications Toolbox; you need that installed and licensed

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

질문:

2014년 1월 2일

댓글:

2014년 1월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by