フィルターのクリア

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

1 回表示 (過去 30 日間)
aditya kumar sahu
aditya kumar sahu 2016 年 11 月 16 日
回答済み: KSSV 2016 年 11 月 16 日
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

採用された回答

KSSV
KSSV 2016 年 11 月 16 日
z=[ 0 1 1 1 1 1 1 1] ;
l = repmat(z,[256,1]) ;
doc repmat.

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by