Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Why does the code give different results with different versions of MATLAB?
조회 수: 1 (최근 30일)
이전 댓글 표시
The following code gives the required (and correct) answer with MATLAB 6.1 but with MATLAB 7, it gives the following error that the variable I is not recognised. This variable I appears with the execution of the statement with P matrix.
clc;
A=[-00967 21277;
-00050 0;];
T=1/2500.0;
y=[0;24.0/L];
syms d t
C=int(expm(A*(T-t))*y,d*T,T);
B=inv(eye(2)-expm(A*T));
x=B*C;
D=expm(A*d*T);
P=[1 0]*D*x
I variable appears in the P matrix in MATLAB 7. Please explain the anomaly. It is urgent
댓글 수: 1
답변 (1개)
Azzi Abdelmalek
2013년 6월 8일
편집: Azzi Abdelmalek
2013년 6월 8일
y=[0;24.0/L];
How Matlab will calculate 24.0/L if the value of L is unknown?
You should give a value to L, for example
L=1
y=[0;24.0/L];
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!