I don't know why MATLAB appears such a error message when debug this program,but in my friend's machine,the program can be debugged successfully.thank you!
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
The only error message is"??? Undefined command/function 'circle'."
clear; close all; clc; N=20; m=10; n=0:1:N-1; x=8*(0.4).^n; n1=mod((n+m),N); xm=x(n1+1); subplot(2,1,1); stem(n,x); title('original squence'); xlabel('n'); ylabel('x(n)'); subplot(2,1,2); stem(n,xm); title('circular shift squence'); xlabel('n'); ylabel('x((n+10))mod20');
Akzeptierte Antwort
Sachin Ganjare
am 17 Okt. 2012
Undefined command/function 'circle'."
Means that matlab cannot find function/command 'circle'.
Please check where this function is defined.
Also code which you have pasted does not refer any function named 'circle'.
Hope it helps!!
4 Kommentare
Image Analyst
am 17 Okt. 2012
But why did it work on your friend's computer? It should not have worked there either.
Weitere Antworten (1)
Image Analyst
am 17 Okt. 2012
Type
>> which -all circle
on both your computer and your friends computer. Then compare what it prints in the command window. Tell us what they both say.
Siehe auch
Kategorien
Mehr zu Language Fundamentals finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!