필터 지우기
필터 지우기

dimension consistency of matrix

조회 수: 1 (최근 30일)
Tino
Tino 2019년 5월 14일
답변: Raj 2019년 5월 14일
Hello
I have 2 columns
A B
1 2
2 4
3 3
4 1
6
1
3
4
5
6
How do I make B the same size as A by completting the length with zero to make it the same dimension
Thanks advance

답변 (1개)

Raj
Raj 2019년 5월 14일
A=[1;2;3;4;6;1;3;4;5;6]
B=[2;4;3;1]
B= [B;zeros(numel(A)-numel(B),1)]

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by