필터 지우기
필터 지우기

How can I set variables for a function and then plot the results of the function vs the variable

조회 수: 1 (최근 30일)
I am investigating the trace of a matrix, I wish to change some parameters (x and z) in the matrix and from there I want to calculate the eigenvalues and then sum the eigenvalues together to get the trace. I am thinking of creating a characteristic polynomial for my matrix A and then solving the characteristic polynomial for the eigenvalues. Then I will sum the eigenvalue vector to get the trace. How can I change the values of the x and z parameters in my matrix in matlab and then how can I create a plot where the trace is on one axis and the value of the variable parameter is on the other?
  댓글 수: 1
Uday Pradhan
Uday Pradhan 2020년 11월 10일
편집: Uday Pradhan 2020년 11월 11일
Hi,
Could you elaborate on what kind of matrix are you dealing with? Are "x" and "z" variable elements of the matrix? Something like
A = [1 x
23 z];
This might be of help to you : Generalized matrix with tunable parameters

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by