graph (some basic)
Afficher commentaires plus anciens
I wanna know if we wish to plot graph and its based on some equations result, of for example Temperature vs time.. and the values I wish to have on X as (t:dt:tend) and this values are inputs..to draw graph for y axis as calculated value of Temperature..
I am trying this way
x = [t : dt: tend];
y = Tn;
figure
plot(x, y, 'r')
But I am not getting the result; because I learned that y got to be the function of x, but I dont know what to use as if u use f(x) its not accepting here, so what else I can do
4 commentaires
Geoff Hayes
le 19 Mai 2020
Nishaben - what is Tn? Is that a function or a variable?
Walter Roberson
le 19 Mai 2020
Probably
x = t : dt: tend;
y = Tn(x);
figure
plot(x, y, 'r')
Nishaben Desai
le 20 Mai 2020
Modifié(e) : Walter Roberson
le 20 Mai 2020
Nishaben Desai
le 20 Mai 2020
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!