Can someone tell me what is wrong with this command?

1 view (last 30 days)
0.4275 * temp. *(abs(w)).^(0.16)'
I've tried doing element by element and transposing to get the right dimensions. This is just one part to a problem. the rest of the equation is
twc= 35.74 + .6125 * temp -35.75 * (abs(w)).^(0.16) + 0.4275 * temp. *(abs(w)).^(0.16)'
temp and w are 24x1 matrices and I want my answer to be a 24x1 matrix as well. Any help would be appreciated,
Thanks!

Accepted Answer

Star Strider
Star Strider on 27 Feb 2015
Transposing the last term is one problem.
This works:
twc= 35.74 + .6125 * temp -35.75 .* (abs(w)).^(0.16) + 0.4275 * temp .* (abs(w)).^(0.16);
I will leave it to you to decide if it gives the correct answer.
  2 Comments
Alex Castillo
Alex Castillo on 27 Feb 2015
thank you so much. I'm trying to understand matlab since this is my firs time using it. You really helped!! thank you!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!