MATLAB Answers

Mismatched delimiters relating to log() function?

22 views (last 30 days)
Matthew Long
Matthew Long on 28 Oct 2020 at 6:01
Answered: Star Strider on 28 Oct 2020 at 11:11
This is my matrix:
D(:,:,i) = [Re.^theta(2,i) log(Re.)*theta(1,i)*(Re.^theta(2,i))];
It says I have mismatched delimiters at column 41. Any explanation is greatly appreciated.

  0 Comments

Sign in to comment.

Answers (1)

Star Strider
Star Strider on 28 Oct 2020 at 11:11
You have a typo:
D(:,:,i) = [Re.^theta(2,i) log(Re.)*theta(1,i)*(Re.^theta(2,i))];
↑↑ PROBLEM
solution:
D(:,:,i) = [Re.^theta(2,i) log(Re).*theta(1,i)*(Re.^theta(2,i))];
↑↑ REVERSED
.

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by