plot the graph of mulivariable

1 回表示 (過去 30 日間)
shiv gaur
shiv gaur 2022 年 1 月 13 日
コメント済み: Benjamin Thompson 2022 年 1 月 28 日
theta = linspace(0,2*pi,100);
na= linspace(1,20,100);
da= linspace(0,5,100);
figure(1)
[x,y]=f(theta,na,da);
dx = gradient(x);
dy = gradient(y);
dna=gradient(na);
p=dy./dx/dy./dna;
plot(da,p);
%%%%%%%%%%%%%%%%%%%
function [x,y]=f(theta,na,da)
np=1.5;
a=1.2;
b=3;
x=np*sin(theta);
k1=sqrt(a-x.^2)+na;
k2=sqrt(b-x.^2);
y=(k1-k2)./(k1+k2)+da;
end
pl help to plot graph between da vs p=dy/dx/dy/dna
  2 件のコメント
shiv gaur
shiv gaur 2022 年 1 月 13 日
pl help to plot graph between da vs p=dy/dx/dy/dna
Benjamin Thompson
Benjamin Thompson 2022 年 1 月 28 日
y and dy have complex values due to x being to large. Can you change the definition of your problem?

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

回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by