bonjour,

voici mon programme, ce programme fonctionnait il y a 3 mois:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
F = 10000; 
phi=0; 
width=0.5; 
t = 0:1/10000:1.5; 
 
x=sawtooth(2*pi*F*t+phi,width); 
subplot(2,1,1);plot(t,x), axis([0 0.2 -1 1]) 
 
y=square(2*pi*F*t+phi,width*100); 
subplot(2,1,2);plot(t,y), axis([0 0.2 -1 1])


Il me donne ça comme erreur:

??? Undefined command/function 'sawtooth'.

Error in ==> Untitled at 6
x = sawtooth(2*pi*F*t+phi,width);