I am using an example from Matworks but on Matlab version 6.1. The code is on the link:
The error occurs on line:
modelFun = @(p,x) p(3) .* (x./p(1)).^(p(2)-1) .* exp(-(x./p(1)).^p(2));
It says that it needs a parentheses on this line.
I thank any help.

댓글 수: 1

John D'Errico
John D'Errico 2022년 10월 15일
Your main error is using that old of a release. :)

댓글을 달려면 로그인하십시오.

답변 (1개)

Steven Lord
Steven Lord 2022년 10월 13일

1 개 추천

Your version of MATLAB is very old (it's over 21 years old!) and predates the introduction of anonymous functions. Anonymous functions were introduced in MATLAB 7.0. Unless you're running this software on a very old version of Windows (I think Windows 2000 is the latest version of Windows listed in the System Requirements) your machine does not satisfy the requirements.
There's a lot of functionality that you'll see in the online documentation that is not available in your release. I strongly suggest you update.

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품

릴리스

R11.1

질문:

2022년 10월 13일

댓글:

2022년 10월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by