I want to create 4 matrices (6x10) with sums of rows and columns as following; in a single program/code.
mat1: sum_row1=sum_row2=......=sum_row6=r(say) sum_col1=sum_col2=......=sum_col6=c(say)&&&&&&& r=c
mat2: sum_row1=sum_row2=......=sum_row sum_col1≠sum_col2≠......≠sum_col6
mat3: sum_row1≠sum_row2≠......≠sum_row6 sum_col1=sum_col2=......=sum_col6
mat4: sum_row1≠sum_row2≠......≠sum_row6 sum_col1≠sum_col2≠......≠sum_col6
Kindly suggest some logic/program
Thanks
1 Comment
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/215556-matrices-with-customized-sum-for-rows-and-columns#comment_286943
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/215556-matrices-with-customized-sum-for-rows-and-columns#comment_286943
Sign in to comment.