I need help to fix my quiver in my graph

1 view (last 30 days)
Ian Samuelsson
Ian Samuelsson on 10 Jun 2021
Commented: Ian Samuelsson on 10 Jun 2021
i don't know why my quiver don't work here, i'm trying to make vector lines in this graph
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;
  2 Comments
KSSV
KSSV on 10 Jun 2021
quiver X,Y,u,v ot u, v...
Remove the quiver before meshgrid i.e. last but one quiver. But this not what you are expecting.
Ian Samuelsson
Ian Samuelsson on 10 Jun 2021
i don't get it, i remove the quiver before the mesh, but the vectors dont apear in my waves, anyway thanks for the help !

Sign in to comment.

Answers (0)

Categories

Find more on Vector Fields in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!