I have a problem in plotting ilaplace!!

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 日

0 投票

@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 件のコメント

Iqbal Batiha
Iqbal Batiha 2023 年 6 月 16 日
Dear Dyuman Joshi, As you recommended, I run the command status = license('checkout','Symbolic_Toolbox'), and I found that the status is 1. But I couldn't find where are Home tab and Add-ons option because I'm using an old version of MATLAB (2011). So, could you plaese let me know how I can install the Symbolic Toolbox to the version that I have!!
Thanks in advance
Dyuman Joshi
Dyuman Joshi 2023 年 6 月 16 日
I see. Yes, the option I mentioned was introduced in R2015b.
Please follow this steps -
1 - Go to this link https://in.mathworks.com/downloads/ and log in.
2 - Link your license.
2 - Select your release from the left hand side and click on "Get MATLAB and Simulink Packages", from here you can download and install the Symbolic Toolbox.
Note that the installing instructions are just mentioned below the list of toolboxes.
Iqbal Batiha
Iqbal Batiha 2023 年 6 月 16 日
Thanks a lot dear for your kind support and consideration. I will do what I have to do. Thanks again
Dyuman Joshi
Dyuman Joshi 2023 年 6 月 16 日
Always happy to help!
If my answer solves your problem, please consider accepting it.
Iqbal Batiha
Iqbal Batiha 2023 年 6 月 16 日
Of course it helped me! But excusme how I can consider accepting it?
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 日

0 投票

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 日

0 投票

Hello Manas
Thanks a lot for reply.
Maybe the problem lies on Symbolic toolbox!!
Could you please help me in this matter?

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by