Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

what does this line mean

1 visualizzazione (ultimi 30 giorni)
Matlab works
Matlab works il 26 Feb 2020
Chiuso: MATLAB Answer Bot il 20 Ago 2021
t= [ones(1,10) 1+ones(1,10) 2+ones(1,15) 3+ones(1,10) ];

Risposte (1)

Benjamin Großmann
Benjamin Großmann il 26 Feb 2020
ones(r, c) creates an array of ones with r rows and c columns. That said, ones(1, c) creates a line vector with c elements. Here, four line vectors are created and written side by side in one line vector. Therefore, t is a line vector containing 10 ones, 10 twos, 15 threes and 10 fours.

Questa domanda è chiusa.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by