Unable to use curly braces to index into cell

8 views (last 30 days)
Anybody know how to fix this?

Answers (1)

Fangjun Jiang
Fangjun Jiang on 26 Mar 2021
Where is your variable "cell" defined? cell() is a function. Use some other name.
  7 Comments
Fangjun Jiang
Fangjun Jiang on 26 Mar 2021
The problem is that in the first for-loop, the "if" condition was never met so variable "Group1" was never created.
For problem like this, puase the code before the line where the error occured and debug.
ROBERT WALSH
ROBERT WALSH on 26 Mar 2021
Sorry, I've been given this code for an assignment (I have little knowledge with MATLAB), could anybody get this to run and show the graph below given the following files?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!