Hi Thanks for your video :) Quick question! At 06:10, the result after first sum function will be [10 14] and after that the second sum function will be done. But as I know, just sum function returns a value of the sum of columns. So I have no idea why it works. Should it be like " sum(sum(A([1,3], [2,4])),2) ?
Dear sir, Thank you for such an amazing video. I have a quick question that I want to add the 4*4 matrix diagonally, So what will be the script for that one. I have tried all the possible way but I cant find it or It is not possible to add it diagonally.
Hi Thanks for your video :) Quick question!
At 06:10, the result after first sum function will be [10 14] and after that the second sum function will be done. But as I know, just sum function returns a value of the sum of columns. So I have no idea why it works. Should it be like " sum(sum(A([1,3], [2,4])),2) ?
Just in case, is that rule for over 2x2 matrix?
Dear sir,
Thank you for such an amazing video.
I have a quick question that I want to add the 4*4 matrix diagonally, So what will be the script for that one.
I have tried all the possible way but I cant find it or It is not possible to add it diagonally.
how do i add the diagonal using the sum function?
selected_colums_sum = sum(A(:,[1,3]))