Effacer les filtres
Effacer les filtres

write m script file or create matrix

13 vues (au cours des 30 derniers jours)
Rashmi Amarathunga
Rashmi Amarathunga le 21 Avr 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
  1 commentaire
Rik
Rik le 21 Avr 2020
You can find guidelines for posting homework on this forum here.

Connectez-vous pour commenter.

Réponse acceptée

Prasad Reddy
Prasad Reddy le 23 Avr 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 commentaires
Rik
Rik le 23 Avr 2020
Please don't post complete solutions to homework questions.
Rashmi Amarathunga
Rashmi Amarathunga le 25 Avr 2020
Thank you for ur answer.it works

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by