MATLAB Answers

make a matrix from

2 views (last 30 days)
Lev Mihailov
Lev Mihailov on 7 Nov 2019
I am given numbers 2, 4 and 8, I need to make three matrices from them, format 3x3.1x10 (this will already be a vector) and 2x4
X=[2 2 2: 2 2 2: 2 2 2] Y=[4 4 4 4 4 4 4 4 4 4 ]
example example how it should look. Is it possible to do this automatically? Preferably without cycles

  0 Comments

Sign in to comment.

Answers (1)

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH on 7 Nov 2019
x=repmat(2,3,3)
y=repmat(4,1,10)

  0 Comments

Sign in to comment.

Sign in to answer this question.