Not enough input arguments.

2 ビュー (過去 30 日間)
Sophia Nador
Sophia Nador 2020 年 12 月 11 日
編集済み: KALYAN ACHARJYA 2020 年 12 月 11 日
Hi,
I'm trying to use the repmat function :
for i=1:size(test,1)
a=(test{i,2 :4} - train{: , 2:4})
b=repmat(a)
end
But I only obtain this error :
Error using repmat
Not enough input arguments.
  1 件のコメント
Matt J
Matt J 2020 年 12 月 11 日
You should believe what the error message is telling you.

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

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 12 月 11 日
編集済み: KALYAN ACHARJYA 2020 年 12 月 11 日
Yes, what repmat suppose to do here, repmat(A,n) returns an array containing n copies of A in the row and column dimensions. May be you missed the "n" to be define, as an example
>> a=1:3
a =
1 2 3
>> repmat(a)
Error using repmat
Not enough input arguments.
  2 件のコメント
Sophia Nador
Sophia Nador 2020 年 12 月 11 日
Thank you very much :)
KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 12 月 11 日
編集済み: KALYAN ACHARJYA 2020 年 12 月 11 日
My pleasure :)

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

その他の回答 (1 件)

Matt J
Matt J 2020 年 12 月 11 日
編集済み: Matt J 2020 年 12 月 11 日
You should believe what the error message is telling you. In the documentation for repmat, you will find no single-argument syntax like the one you've used.
  1 件のコメント
Sophia Nador
Sophia Nador 2020 年 12 月 11 日
Thank you very much for your answer ! :)

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

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by