How to set period (t=0 becomes t=-4)
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I'm creating graphs in Matlab for a relative simple equation. I want the value that is the first value in my input matrix to be 'recognized' as belonging to t=-4 and not t=0. Or put differently, I want to 'move' my graph a little to the left relative to the x axis. How do I go about this?
Thank you in advance!
0 Commenti
Risposte (1)
J. Webster
il 15 Apr 2016
might depend on what and how you're plotting. For the simplest case you can just do this...
t = 0:100;
data = somefunction(t);
plot(t-4, data);
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!