how to create a matrix of size 256*8 (double type) having elements as 0 1 1 1 1 1 1 1

1 Ansicht (letzte 30 Tage)
suppose i have a vector of double type z= 0 1 1 1 1 1 1 1 i.e size of 1*8
i want to create a new matrix of double type having size 256*8 and all the rows should be as 0 1 1 1 1 1 1 1.
Thank you in advance

Akzeptierte Antwort

KSSV
KSSV am 16 Nov. 2016
z=[ 0 1 1 1 1 1 1 1] ;
l = repmat(z,[256,1]) ;
doc repmat.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by