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.

1 件のコメント

Jadson Belchior
Jadson Belchior 2022 年 10 月 14 日
Many thanks

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

製品

リリース

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