write m script file or create matrix
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rashmi Amarathunga
am 21 Apr. 2020
Kommentiert: Rashmi Amarathunga
am 25 Apr. 2020
i want write m script file for create 5x4 matrix in which first two rows are zeros and last three rows are ones.how do i create this
Akzeptierte Antwort
Prasad Reddy
am 23 Apr. 2020
A=zeros(2,4) % creaes a 2X4 matrix of zeros
B=ones(3,4) % creates a 3X4 matrix of ones.
c=[A;B] % combinng thoe two matixs
% this code will produce the required matrix
2 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!