I need help to fix my quiver in my graph

1 回表示 (過去 30 日間)
Ian Samuelsson
Ian Samuelsson 2021 年 6 月 10 日
コメント済み: Ian Samuelsson 2021 年 6 月 10 日
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 件のコメント
KSSV
KSSV 2021 年 6 月 10 日
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 2021 年 6 月 10 日
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 !

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeVector Fields についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by