intro to programing MATLAB, Matrix
Mostra commenti meno recenti
Hello everyone I just finished a assignment and was wondering if there was a easier answer then i got the question was
Given matrix A assign the second column to a variable v. after change elements of last row to 0
A=[1:5; 6:10; 11:15; 16:20];
i used
v = A(1:4,2)
A= [1:5; 6:10; 11:15; 0,0,0,0,0]]
the answer is correct but how could i have made it simpler? Recomendations?
2 Commenti
Anand Shanker Trivedi
il 17 Ago 2020
can you please tell me how u got answer for this assisngment
i am stuck in this since 2 days but could not find answer
what should be the value of v ?
Rik
il 17 Ago 2020
@Anand, did you see my answer below? It contains a hint about how you can do this.
Risposta accettata
Più risposte (1)
urvashi sharma
il 19 Ott 2020
0 voti

1 Commento
Rik
il 19 Ott 2020
Why did you post this? Is this a question? An answer?
If you don't respond, this may be deleted.
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!