MATLAB Answers

How to plot(x,y) if x = f(y) is given

1 view (last 30 days)
Sunil B
Sunil B on 12 May 2021
Edited: Sunil B on 12 May 2021
I have a complex function which I am unable to plot. I want to plot(x,y), but the function is given as follows

Answers (1)

VBBV
VBBV on 12 May 2021
%if true
C_0 = 12 ;
T_l = 903 ;
m = -2.5 ;
sigma_star = 0.0666;
k = 0.0208 ;
x = 0:20;
y = - m*C_0*(2*sigma_star.*x + (1-k)*((pi.*x).^(0.5)).*exp(x).*erfc(x.^0.5))./(1-(1-k).*((pi.*x).^(0.5)).*exp(x).*erfc(x.^0.5));
plot(x,y)

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!