Clear Filters
Clear Filters

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 view (last 30 days)
Find amplitude and phase angle and plot X(t) wrt time ?

Accepted Answer

Sam Chak
Sam Chak on 25 Dec 2023
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 Comments
Sam Chak
Sam Chak on 25 Dec 2023
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)

Sign in to comment.

More Answers (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 25 Dec 2023
Do these steps:
(1) Initialize t:
(2) Compute: X(t)
(3) Plot: t vs. X:
(4) Compute magnitude:
(5) Compute phase angle:
  4 Comments
Dyuman Joshi
Dyuman Joshi on 25 Dec 2023
@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.

Sign in to comment.

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!