MATLAB Answers

Mismatched delimiters relating to log() function?

조회 수: 11(최근 30일)
Matthew Long
Matthew Long 28 Oct 2020
답변: Star Strider 28 Oct 2020
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

댓글을 달려면 로그인하십시오.

답변(1개)

Star Strider
Star Strider 28 Oct 2020
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

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by