Need code for generalized square Matrix formulation of the type given below

조회 수: 6 (최근 30일)
sarath yadav
sarath yadav 2019년 2월 11일
답변: Walter Roberson 2019년 2월 11일
I need help in forming a generalized square matrix of any size with upper triangular = lower trigangular and diagonal elements as '0'
example for 3x3 matrix as follows
A= [ 0 beta beta/gama; beta 0 alfa*beta; beta/gama alfa*beta 0]
Please him me in getting code for generalized sqaure matrix of above form

답변 (1개)

Walter Roberson
Walter Roberson 2019년 2월 11일
You can create that with squareform()

카테고리

Help CenterFile Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기

태그

제품


릴리스

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by