how can i run a function witout facing this error: An array for multiple LHS assignment cannot contain expressions.

2 Ansichten (letzte 30 Tage)
the function is:[spktimes, {nspikes}] = SGfast([dt, nrep], rate, {deadtime, refracparams});

Akzeptierte Antwort

cr
cr am 5 Okt. 2013
just remove {} on nspikes.
  2 Kommentare
Nima
Nima am 5 Okt. 2013
i removed {} but i got another error: Undefined function 'SGfast' for input arguments of type 'cell'.
cr
cr am 7 Okt. 2013
That could be because of multiple issues. Firstly do you have the function file SGfast.m ? Secondly is the third input in the definition of the function a cell type? You need to check documentation on the function.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by