Exponential equation in a graph

2 ビュー (過去 30 日間)
Abul Hasib
Abul Hasib 2020 年 10 月 21 日
回答済み: drummer 2020 年 10 月 21 日
I have a code that gives me a plot which looks like a exponential curve. The thing is i want to show the exponential equation in the figure like we do in excel. Can anyone please help me with that?
I tried the basic fitting and there are not options for exp fit.
  2 件のコメント
KSSV
KSSV 2020 年 10 月 21 日
J. Alex Lee
J. Alex Lee 2020 年 10 月 21 日
what exactly does your exponential model look like (and your plot)?

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

回答 (1 件)

drummer
drummer 2020 年 10 月 21 日
Well, if you have already coded your plot, what is the problem to create a figure in matlab?
If you have your arrays of x and f(x), which is your exponential curve, don't you use figure and plot?
x = yourXarray;
f = yourExpFunc;
% x and f must be the same length.
figure
plot(x, f);
title('your Title');
xLabel('x label');
yLabel('y label');
Approaches for 'basic fitting' or 'options for exp fit' as you mentioned do not produce figures as excel. They only work on the math.
Cheers

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by