how i plot the graph of my solution ?

1 view (last 30 days)
Ian Samuelsson
Ian Samuelsson on 6 Jun 2021
Answered: Ian Samuelsson on 8 Jun 2021

Answers (1)

Ian Samuelsson
Ian Samuelsson on 8 Jun 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;

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!