MATLAB Plotting Systems in Matlab: x_1(t),x_2(t) w/ Complex Equations

AI Thread Summary
To plot the given functions in MATLAB, users should define the time vector and the constants before evaluating the expressions for x_1(t) and x_2(t). For the first system, x_1(t) and x_2(t) can be computed using the exponential function and then plotted using the plot function. For the more complex system involving trigonometric functions, the same approach applies, but users must ensure to include the cosine and sine components in their calculations. The help command in MATLAB can provide additional guidance on the plot function and its options for visualizing the results effectively. Properly setting up the time vector and constants is crucial for accurate plotting.
Tom McCurdy
Messages
1,017
Reaction score
1
How would you plot

x_1(t)=c_1e^{-t}+c_2*e^{3t}
x_2(t)=-c_1e^{-t}+c_2*e^{3t}

and similar systems in Matlab?

For example if it was complex like:

x_1(t)=5*e^{5t}(c_1 cos(4t)+c_2sin(4t))
x_2(t)=5*e^{5t}((2 c_1+4 c_2) cos(4t)+(4 c_1 - 2 c_2)sin(4t))
 
Physics news on Phys.org
in MATLAB type:
help plot
 
Back
Top