Mismatched delimiters relating to log() function?

3 visualizaciones (últimos 30 días)
Matthew Long
Matthew Long el 28 de Oct. de 2020
Respondida: Star Strider el 28 de Oct. de 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.

Respuestas (1)

Star Strider
Star Strider el 28 de Oct. de 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
.

Categorías

Más información sobre Logical en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by