Assistance with simple error
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I am copying the code below from this page, but it says error
"Undefined function 'a' for input arguments of type 'char'."
Could anybody tell me what is wrong?
Thanks
a := [6, 9, 17, 0, 13, 9, 9, 12, 12, 12]:
b := [7, 8, 20, 2, 11, 8, 9, 12, 13, 15, 2, 14]:
q := plot::QQplot(a, b):
plot(q)
0 件のコメント
採用された回答
Walter Roberson
2012 年 12 月 10 日
編集済み: Walter Roberson
2012 年 12 月 10 日
Provided you have the symbolic toolkit, at the MATLAB command line use
a = [6, 9, 17, 0, 13, 9, 9, 12, 12, 12];
b = [7, 8, 20, 2, 11, 8, 9, 12, 13, 15, 2, 14];
feval(symengine, 'plot::QQplot', a, b);
0 件のコメント
その他の回答 (4 件)
Muruganandham Subramanian
2012 年 12 月 10 日
編集済み: Muruganandham Subramanian
2012 年 12 月 10 日
Check this:
I don't have r2012b version
a = [6, 9, 17, 0, 13, 9, 9, 12, 12, 12];
b = [7, 8, 20, 2, 11, 8, 9, 12, 13, 15, 2, 14];
plot::QQplot([a, b]);
Wayne King
2012 年 12 月 10 日
Are you trying to enter this directly at the MATLAB command prompt?
You have to first enter
>>mupad
Then copy and paste the code in the MuPAD notebook and hit enter
Wayne King
2012 年 12 月 10 日
Do you have the Statistics Toolbox? If so you don't need to use MuPAD
a = [6, 9, 17, 0, 13, 9, 9, 12, 12, 12];
b = [7, 8, 20, 2, 11, 8, 9, 12, 13, 15, 2, 14];
qqplot(a,b)
Sean de Wolski
2012 年 12 月 10 日
And in MuPAD, all you have to do is paste what you have above into a code line.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!