X(t)=0.1179e-25.2tsin(50t+0.3224π } Use MATLAB to Plot X (t)with time and determine the amplitude and phase angle of the transient response within the system
조회 수: 1 (최근 30일)
이전 댓글 표시
채택된 답변
Sam Chak
2023년 12월 25일
Hi @Talha
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'
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
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
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
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 Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!