How do you make the rows of one matrix/vector be the same amount as the rows of another matrix

조회 수: 1 (최근 30일)
So I have one column vector
A = [0:0.1:round(d/(min(B)))]'
and need to make a matrix that has the same amount of rows that A has, along with 5 columns. So I was thinking something alone the lines of
C = zeros(size(A),5)
But clearly that doesn't work. What can I do?

채택된 답변

KSSV
KSSV 2016년 2월 8일
A = [0:0.1:round(d/(min(B)))]' ;
C = zeros(size(A,1),5)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numeric Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by