필터 지우기
필터 지우기

how can i plot this matrix

조회 수: 1 (최근 30일)
Mariam Gasra
Mariam Gasra 2019년 5월 2일
댓글: jahanzaib ahmad 2019년 5월 3일
lamda1=0.2;
mu1=1-lamda1;
lamda2=0.3;
mu2=1-lamda2;
A=[-(lamda1+lamda2) mu2 mu1 0;lamda2 -(mu2+lamda1) 0 mu1;lamda1 0 -(lamda2+mu1) mu2;0 lamda1 lamda2 -(mu1+mu2)];
B=[1;0;0;0];
[m n] = size(A);
[p q] = size(B);
C = zeros(m*p,n*q);
for i = 1:m
for j = 1:n
C((i-1) * p + (1:p),(j-1) * q + (1:q)) = A(i,j) * B;
end
end
i went to add for loop in the answer
for t:1:5:100
and plot the result for it
  댓글 수: 2
Raj
Raj 2019년 5월 3일
Your code looks fine. What exactly are you trying to do? Do you want to plot 'C' matrix?
jahanzaib ahmad
jahanzaib ahmad 2019년 5월 3일
where u want to add t ?
C is 16 X4 matrix
t= 20x 1

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

답변 (0개)

카테고리

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

태그

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by