I have a code but it keep saying "invalid expression. when calling a function or indexing a variable, use parentheses. otherwise check for mismatched delimiters.

Answers (1)

You have 10 open parentheses "(" but only 9 close parentheses ")".
I can't say for sure whether (or where) you need to remove an open parenthesis or add a close parenthesis, but if I had to guess, I would say you can add a close parenthesis just before the comma.

Categories

Products

Release

R2023a

Asked:

on 28 Aug 2023

Answered:

on 28 Aug 2023

Community Treasure Hunt

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

Start Hunting!