I have a problem in plotting ilaplace!!

조회 수: 2 (최근 30일)
Iqbal Batiha
Iqbal Batiha 2023년 6월 15일
댓글: Iqbal Batiha 2023년 6월 16일
I have a problem in plotting ilaplace!! Any help?
clear, clc;
syms s t
C11=-0.0564834; C12= 0.249474;
C21= -1.22098; C22=-0.577793;
U(s)=vpa(( (2.7671-C11./C21).*s -(1./C21).*s.^3 )/( -s.^4./C21 -( (C22-C11)./C21 ).*s.^2 + C12-C11.*C22./C21 ));
u(t)=vpa(ilaplace(U(s)));
figure;
fplot(u(t),[0 3])
  댓글 수: 2
Manas
Manas 2023년 6월 15일
Hi Iqbal,
What problem are you facing with your code?
Dyuman Joshi
Dyuman Joshi 2023년 6월 15일
The code seems to be working fine here.
Do you have the Symbolic toolbox which is required to run the code?
syms s t
C11=-0.0564834;
C12= 0.249474;
C21= -1.22098;
C22=-0.577793;
U(s)=vpa(((2.7671-C11./C21).*s -(1./C21).*s.^3 )/(-s.^4./C21 -( (C22-C11)./C21 ).*s.^2 + C12-C11.*C22./C21));
u(t)=vpa(ilaplace(U(s)));
figure;
fplot(u(t),[0 3])

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

채택된 답변

Dyuman Joshi
Dyuman Joshi 2023년 6월 15일
@Iqbal Batiha, First check if your license has access to the Symbolic Toolbox. Run this command and check the output -
status = license('checkout','Symbolic_Toolbox')
If status is 1, then you can proceed further - Go to Home tab of the toolstrip, you will see an option Add-ons, click on it and a window will open, where you can search and download the Symbolic toolbox.
If status is 0, you need to purchase the Symbolic toolbox to access it.
  댓글 수: 7
Dyuman Joshi
Dyuman Joshi 2023년 6월 16일
There will be a blue button under my name and picture named "Accept this answer", just click on it.
Iqbal Batiha
Iqbal Batiha 2023년 6월 16일
Okay, I got it!
It is done!

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

추가 답변 (2개)

Iqbal Batiha
Iqbal Batiha 2023년 6월 15일
Hello dear Dyuman Joshi,
Thanks a lot for your quick reply... It seems that all the matter depends on Symbolic toolbox!! So, how I can install it?
Thanks again dear

Iqbal Batiha
Iqbal Batiha 2023년 6월 15일
Hello Manas
Thanks a lot for reply.
Maybe the problem lies on Symbolic toolbox!!
Could you please help me in this matter?

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by