Mismatched delimiters relating to log() function?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Star Strider
le 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 commentaires
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!