how i plot the graph of my solution ?

1 vue (au cours des 30 derniers jours)
Ian Samuelsson
Ian Samuelsson le 6 Juin 2021
  1 commentaire
Sulaymon Eshkabilov
Sulaymon Eshkabilov le 7 Juin 2021
Can you show what you have done so far?

Connectez-vous pour commenter.

Réponses (1)

Ian Samuelsson
Ian Samuelsson le 8 Juin 2021
i think is done, the only problem is my quiver.
clear; clc;
k = 0.04;
M = 5;
syms t T
f(t,T) = log( abs( (T-M) ./ (T+M) ) ) - 2*atan( T/M ) - 4*M^3*k*t
g = matlabFunction(f)
tnum = linspace(0,5,1000);
Tnum = linspace(-5,2,1000);
[tt,TT] = meshgrid(tnum,Tnum);
zz = g(tt,TT);
contour(tt,TT,zz,"ShowText","on")
colormap jet
colorbar
title("T(t) para vários c")
xlabel('t'); ylabel('T(t)')
quiver(t,T);
[t,T] = meshgrid(-10:.1:10,-10:.1:10-10:.1:10);
quiver(t,T); %<------- i dunno why dont work
grid on;

Catégories

En savoir plus sur Red dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by