X(t)=0.117​9e-25.2tsi​n(50t+0.32​24π } Use MATLAB to Plot X (t)with time and determine the amplitude and phase angle of the transient response within the system

1 回表示 (過去 30 日間)
Find amplitude and phase angle and plot X(t) wrt time ?

採用された回答

Sam Chak
Sam Chak 2023 年 12 月 25 日
I wanted to help, because you probably wouldn't be asking this question if you already knew which MATLAB functions to use for finding the amplitude and phase angle. MATLAB offers numerous built-in functions. I need to know what the amplitude and phase angle are, and then I can likely identify the appropriate function for the task.
Could you sketch or mark the amplitude and phase angle? However, there is an issue with plotting the equation you supplied for . Please fix the equation so that we can continue our meaningful discussion.
X = @(t) 0.1179e-25.2*t.*sin(50*t + 0.3224*pi); % your original equation, π is replaced by 'pi'
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.
t = 0:0.001:0.5; % specify the time span from 0 to 0.5 with time step of 0.001
plot(t, X(t)), grid on % plot X(t) and enable grid
By the way, I don't have a math dictionary for '0.1179e-25.2'. Could you check your textbook? It might be a typo from the printing process.
  5 件のコメント
Sam Chak
Sam Chak 2023 年 12 月 25 日
Oh I see. It's the exponential e. Now, please sketch or mark the amplitude and phase angle of the transient response on the image of the plot. I think the transient lasts between 0 to 0.2 sec.
X = @(t) 0.1179*exp(-25.2*t).*sin(50*t + 0.3224*pi); % your original equation, π is replaced by 'pi'
t = 0:0.001:0.2; % specify the time span from 0 to 0.2 with time step of 0.001
plot(t, X(t)), grid on % plot X(t) and enable grid
xlabel t, ylabel X(t)

サインインしてコメントする。

その他の回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023 年 12 月 25 日
Do these steps:
(1) Initialize t:
(2) Compute: X(t)
(3) Plot: t vs. X:
(4) Compute magnitude:
(5) Compute phase angle:
  4 件のコメント
Dyuman Joshi
Dyuman Joshi 2023 年 12 月 25 日
@Talha, no one here will do your homework for you. If you want help, you'll have to show some effort.
@Sulaymon Eshkabilov has already been provided with information on how to proceed. You should try implementing it.
If you are new to programming with MATLAB, I suggest you take the free MATLAB Onramp tutorial and learn the basics of MATLAB.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by