how to write this equation ?

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 Comments

Where is the equation?
T = linspace (100, 1, 10);
mu = @ (t) 0.001. * (0.2414 * 10. ^ (247.8 / ((t - 273) + 68.12963));
I have edited the code and attached the results too, Are you looking for this one? Pls confirm
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.

Sign in to comment.

 Accepted Answer

KALYAN ACHARJYA
KALYAN ACHARJYA on 27 Jul 2018
Edited: KALYAN ACHARJYA on 27 Jul 2018
Its OK, no error
T=linspace(100,1,10)
mu=(0.001.*(0.2414.*10.^(247.8./((T-273)+68.12963))))

More Answers (2)

T = linspace (100, 1, 10);
mu = @(t) 0.001 .* (0.2414 * 10.^(247.8./((t - 273) + 68.12963)));
mu(T)
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 Comments

As per my understanding, you want to calculate mu w.r.t T, Yes?

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!