plot the relationship between function and specific variable

1 回表示 (過去 30 日間)
Najiya Omar
Najiya Omar 2018 年 7 月 9 日
編集済み: Najiya Omar 2018 年 7 月 10 日
Want to see the plot between t and thada. In this script is not showing, what is going wrong? please help
a=0.2;
b=0.3;
for thada= 0.1:1:20
t=[1+(((thada^a)-1)*((thada^b)-1))/(thada-1)];
tf= log(t)/log(thada)
plot(thada,tf);
end

採用された回答

Adam
Adam 2018 年 7 月 9 日
a=0.2;
b=0.3;
thada= 0.1:1:20
tf = zeros( size( theta ) );
for n = 1:numel( thada )
t=[1+(((thada( n )^a)-1)*((thada( n )^b)-1))/(thada( n )-1)];
tf( n ) = log(t)/log(thada( n ))
end
plot(thada,tf);
should work, but I only edited off the top of my head so there may be errors.
  1 件のコメント
Najiya Omar
Najiya Omar 2018 年 7 月 10 日
編集済み: Najiya Omar 2018 年 7 月 10 日
it works perfectly thank you very much

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by