Weird behavior of modulo function
Mostra commenti meno recenti
Why is this code plotting a straight line?
syms x(t);
x(t) = mod(t, 3);
tSamp = -10:0.01:10;
figure(1);
plot(tSamp, x(tSamp));

mod(a, b) should return a value in the range [0, b), and here it is like mod(t, 3)==t.
What is happening???
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Multirate Signal Processing in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!