HOW TO REPLACE A COLUMN VECTOR IN MATRIX

조회 수: 3 (최근 30일)
Meenakshi S
Meenakshi S 2017년 7월 14일
댓글: Rahul Yadav 2020년 7월 4일
1.How to replace the second column of A with the vector v = [1,-2,4]' for the following matrix
A=(1 2 3 4 5 11 12 13 14 15 21 22 23 24 25) without using spaces or semi colons.
2.For the same matrix above mentioned, each row of A, we want to calculate the square of the norm using the function sum and elementwise operations.
  댓글 수: 1
Rahul Yadav
Rahul Yadav 2020년 7월 4일
What is the answer of 1? please tell me.

댓글을 달려면 로그인하십시오.

답변 (1개)

Daniel Stein
Daniel Stein 2018년 10월 3일
편집: Daniel Stein 2018년 10월 3일
This is somebody's homework, isn't it?
For part 1, it's e19cabca7611608768af0409af2599c29ac80c2f
For part 2, it's 148431be65a6633a461eb949fd26da80e72cd242
I hash, therefore, I am.
  댓글 수: 2
Meenakshi S
Meenakshi S 2018년 10월 8일
Sorry.. It is too late. I have got the solution a year back. Secondly, the answer provided by you for the mentioned question is wrong. Thanks for replying....
ajay preet
ajay preet 2019년 6월 26일
Can you provide the right answer please.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by