how i plot the graph of my solution ?

조회 수: 1 (최근 30일)
Ian Samuelsson
Ian Samuelsson 2021년 6월 6일
답변: Ian Samuelsson 2021년 6월 8일
  댓글 수: 1
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 6월 7일
Can you show what you have done so far?

댓글을 달려면 로그인하십시오.

답변 (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