how i plot the graph of my solution ?

1 次查看(过去 30 天)

回答(1 个)

Ian Samuelsson
Ian Samuelsson 2021-6-8
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;

类别

Help CenterFile Exchange 中查找有关 Red 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by