[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: need help in plotting curve

From: Doug Stewart
Subject: Re: need help in plotting curve
Date: Tue, 17 Sep 2019 15:59:00 -0400

On Tue, Sep 17, 2019 at 2:13 PM navshinder <address@hidden> wrote:
I'm trying a dynamics problem and trying to plot the displacement with
respect to time function.  However I'm returned with an error message
"subscripts must be either integers 1 to (2^63)-1 or logicals
error: called from
    utvst at line 7 column 3"
which I'm not able to figure out

t = linspace(0,0.01,500);
x0 = 0.01;
xdot0 = 0.1;
m = 40;
k = 3500;
omega = sqrt(k/m);
ut = sum((x0.*cos(omega.*t))+((xdot0/omega)(sin(omega.*t))));
You need a * or +  at here ----------------------------^

Sent from:

DASCertificate for 206392

reply via email to

[Prev in Thread] Current Thread [Next in Thread]