Solving Time-discrete Systems Problem: Plotting x(t)= 10e^-3tu()

  • Thread starter Thread starter Abalo
  • Start date Start date
  • Tags Tags
    Systems
AI Thread Summary
The discussion revolves around plotting the continuous-time signal x(t) = 10e^(-3t)u(t) over the range -1 ≤ t ≤ 5. The user attempts to break the time range into two segments, t1 and t2, but encounters issues with plotting. Forum members point out typos in the user's code and request clarification on the programming language being used. They also question the user's intent in seeking help for their homework. Clearer communication and correction of errors are necessary for effective assistance.
Abalo
Messages
1
Reaction score
0
Problem:
x(t)= 10e^-3tu()
Plot the continuous-time signal over the range -1≤t≤5
Break up the time range into two ranges t1=[-1 0] and t2=[0:.1:5]. Then concatenate the results, i.e. t=[t1 t2].

My answer was:
t= 0:.3:-1;
x= exp(-3*t).*u(t)
plot (t,x)
axis (-1 0 -3)

Can't plot the function because of issues.
Please help.
 
Physics news on Phys.org
Abalo said:
Problem:
x(t)= 10e^-3tu()
Plot the continuous-time signal over the range -1≤t≤5
Break up the time range into two ranges t1=[-1 0] and t2=[0:.1:5]. Then concatenate the results, i.e. t=[t1 t2].

My answer was:
t= 0:.3:-1;
x= exp(-3*t).*u(t)
plot (t,x)
axis (-1 0 -3)

Can't plot the function because of issues.
Please help.

Welcome to the PF.

There are some typos in your post that make it hard to follow. Also, you do not specify what programming language you are supposed to plot the function with, and why you are not able to plot it.

Please fix the typos and explain to us why you want us to try to plot your homework for you.
 
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...
Back
Top