Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
problem regarding calling a function with multiple arguments
조회 수: 1 (최근 30일)
이전 댓글 표시
i tried to call a function in different ways but i received different errors at each time.the following are each attempt and related error
1.
[spktimes, {nspikes}] = SGfast([dt, nrep], rate, {deadtime, refracparams})
Error: File: test.m Line: 89 Column: 12
An array for multiple LHS assignment cannot contain expressions.
so i removed {}for nspikes:
2.
[spktimes, nspikes] = SGfast([dt, nrep], rate, {deadtime, refracparams})
and got this error:
Error using SGfast
The third argument must be a real, double-precision scalar.
so again removed{} for third input argument as well:
3.
[spktimes, nspikes] = SGfast([dt, nrep], rate, deadtime, refracparams);
and received this error:
Error using SGfast
Requires two or three input arguments.
댓글 수: 1
Walter Roberson
2013년 10월 8일
Duplicates http://www.mathworks.co.uk/matlabcentral/answers/89356-problem-with-function-argument and needs to be merged into there.
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!