Too many input arguments.

10 ビュー (過去 30 日間)
Fabrice shao
Fabrice shao 2022 年 7 月 4 日
コメント済み: Dyuman Joshi 2022 年 7 月 4 日
Hi fellows,
I'm running my code to contruct an array but it gives me too many "Too many input arguments." Spend day to solve it but not nothing works. Please help
thanks so much
the code is attached
  1 件のコメント
Dyuman Joshi
Dyuman Joshi 2022 年 7 月 4 日
You have not defined what angle() is. (line 114)

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

回答 (1 件)

Garmit Pant
Garmit Pant 2022 年 7 月 4 日
Hello Fabrice
I have gone through your code and have identified that the following error is produced at the following line:
fprintf(fid,' .Angle "0", "0", "%f" \r\n',angle(ii,jj));%% Transform Angle
This is so because the built-in function 'angle' only accepts a single argument in the form of an input array, specified as a scalar, vector, matrix, or multidimensional array. You are passing two arguments to the function and thus the input is invalid due to too many arguments.
You can read about the function 'angle' here: https://www.mathworks.com/help/matlab/ref/angle.html

カテゴリ

Help Center および File ExchangePhased Array Design and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by