what's the mistake with my code
T=linspace(100,1,10)
mu = @(T) 0.001.*(0.2414.*10.^(247.8./((T-273)+68.12963)));
Error: Unexpected MATLAB expression.
please help me

4 件のコメント

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 7 月 27 日
Where is the equation?
vaya putra
vaya putra 2018 年 7 月 27 日
T = linspace (100, 1, 10);
mu = @ (t) 0.001. * (0.2414 * 10. ^ (247.8 / ((t - 273) + 68.12963));
KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 7 月 27 日
I have edited the code and attached the results too, Are you looking for this one? Pls confirm
Walter Roberson
Walter Roberson 2018 年 7 月 27 日
Can you attach the .m file that contains the code? I am wondering if there are some hidden characters.
Also, if the line before the assignment to T was a continuation line ending in ... then the assignment could be a syntax error.

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

 採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 7 月 27 日
編集済み: KALYAN ACHARJYA 2018 年 7 月 27 日

0 投票

Its OK, no error
T=linspace(100,1,10)
mu=(0.001.*(0.2414.*10.^(247.8./((T-273)+68.12963))))

その他の回答 (2 件)

Mark Saad
Mark Saad 2018 年 7 月 27 日

1 投票

T = linspace (100, 1, 10);
mu = @(t) 0.001 .* (0.2414 * 10.^(247.8./((t - 273) + 68.12963)));
mu(T)
vaya putra
vaya putra 2018 年 7 月 27 日

0 投票

i want to calculate T inside of mu
mu(T) 0.001.*(0.2414.*10.^(247.8./((T-273)+68.12963)));
Error: Unexpected MATLAB expression.

2 件のコメント

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 7 月 27 日
As per my understanding, you want to calculate mu w.r.t T, Yes?
vaya putra
vaya putra 2018 年 7 月 27 日
yes

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

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by