Filter löschen
Filter löschen

Replace the first row of the matrix with zeros.

27 Ansichten (letzte 30 Tage)
Wei Ding
Wei Ding am 31 Aug. 2017
Beantwortet: James Cai am 17 Apr. 2020
Hi! I am quite new in Matlab and really don't know how to replace the first row of this matrix with zeros, please help me. 1 2 3 2 3 4 3 4 5 6 7 8 9 10 11 12 13 14

Akzeptierte Antwort

Ryan Klots
Ryan Klots am 31 Aug. 2017
Bearbeitet: Ryan Klots am 31 Aug. 2017
You could try something like
% A is the name of your matrix
% n is the number of columns in your matrix
A(1, :) = zeros(1, n)

Weitere Antworten (1)

James Cai
James Cai am 17 Apr. 2020

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