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일

0 개 추천

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일

0 개 추천

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 ! :)

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

카테고리

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

제품

릴리스

R2020b

태그

질문:

2020년 12월 11일

편집:

2020년 12월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by