intro to programing MATLAB, Matrix
이전 댓글 표시
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
Anand Shanker Trivedi
2020년 8월 17일
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
2020년 8월 17일
@Anand, did you see my answer below? It contains a hint about how you can do this.
채택된 답변
추가 답변 (1개)
urvashi sharma
2020년 10월 19일
0 개 추천

댓글 수: 1
Rik
2020년 10월 19일
Why did you post this? Is this a question? An answer?
If you don't respond, this may be deleted.
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!