Azzera filtri
Azzera filtri

How to extract a value from a Row or Column vector?

15 visualizzazioni (ultimi 30 giorni)
Im trying to take the 5th value of a randomly generated row or column vector. How would I write the code for that?
  2 Commenti
Star Strider
Star Strider il 23 Giu 2020
See the documentation on Matrix Indexing for details.
Is this as homework assignment?
SCE
SCE il 27 Feb 2024
A= V(5)
Simply write this!:)

Accedi per commentare.

Risposta accettata

Fangjun Jiang
Fangjun Jiang il 23 Giu 2020
Is this what you are looking for ?
MyVector=rand(100,1);
MyData=MyVector(5);

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by