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 CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by