Unable to use a value of type string as an index

7 views (last 30 days)
Rithika Varma
Rithika Varma on 23 Oct 2021
Commented: VBBV on 23 Oct 2021
Where even is the string? I checked the datatypes of all the variables, and they're all either double or uint8.
VBBV on 23 Oct 2021
If you don't have numeric value assigned to x it can also be problem

Sign in to comment.

Answers (1)

Scott MacKenzie
Scott MacKenzie on 23 Oct 2021
Inside your loop, change

Community Treasure Hunt

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

Start Hunting!