Info

This question is closed. Reopen it to edit or answer.

()-indexing must appear last in an index expression.

2 views (last 30 days)
Zuha Yousuf
Zuha Yousuf on 3 Dec 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
Can anybody tell me why I'm getting this error? Code attached below: I'm getting the error at the second last line.
Anyone please help!!
Capture.JPG

Answers (1)

Anmol Dhiman
Anmol Dhiman on 15 Dec 2019
In the second last line you have written spikes.times(1,i) twice without any operator between them. This is causing the error.

This question is closed.

Community Treasure Hunt

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

Start Hunting!