How to plot these results?

2 ビュー (過去 30 日間)
Cesar Cardenas
Cesar Cardenas 2023 年 9 月 14 日
回答済み: Image Analyst 2023 年 9 月 14 日
Hello, I would like to know if there could be any option to plot these? not really sure how to do it. Any help will be appreciate.d thanks.
format short
I = 3e10; sigma = 2.02e-18; nNO = 1e8; dz=30; H=10; k=3.5e-7;
qmax = I.*nNO.*sigma.*exp(-1)
qmax = 2.2293
q = qmax.*exp(1-(dz./H).*exp(-(dz./H)))
q = 5.2192
%fprintf('%.2f m^-3 s^-1 \n',q)
%Electron Density
ne = sqrt(qmax./k).*exp((0.5 .*(1 - (dz./H)) - exp (-dz./H)))
ne = 883.3612
  1 件のコメント
Star Strider
Star Strider 2023 年 9 月 14 日
The scatter function would work because they would be plotted as points. To plot them as lines with plot, one of the arguments (perhaps ‘dz’ although I do not know what you are calculating) needs to be a vector.

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

回答 (1 件)

Image Analyst
Image Analyst 2023 年 9 月 14 日
Go here for plot options:
Pick one you like and adapt the sample code snippet.
What in your code is the x variable and what is the y variable?

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by