Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

2 次查看(过去 30 天)
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

回答(1 个)

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

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by