Anyone know why it isnt accepting my expression

1 view (last 30 days)
uk= w + vk + (cuc*cos(2(w+vk)))+ (cus*sin(2(w+vk))
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched
delimiters.

Accepted Answer

Steven Lord
Steven Lord on 2 May 2021
Edited: Steven Lord on 2 May 2021
You're missing two multiplication signs. This is not valid MATLAB code.
2(w+vk)
You need
2*(w+vk)

More Answers (0)

Community Treasure Hunt

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

Start Hunting!