Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
I am analyzing a ground motion applied to a SDOF structure and finding the motion with Newmark's method.
To accomplish this I have read the ground motion in with the readexcel function and then use a for loop to find the relative displacement, acceleration and velocity for each time step.
The file used and the needed excel file are attached.
Solved! Go to Solution.
In the calculation of p.hat you typed square brackets! Never do this unless you want to create a matrix/vector. Always use (round) parentheses to group expressions.
In the calculation of p.hat you typed square brackets! Never do this unless you want to create a matrix/vector. Always use (round) parentheses to group expressions.
You've typed square brackets [ ] in your expression for Phat:
You should NEVER type square brackets, unless you want to create an array.
Change those square brackets to (ordinary) round brackets.
Prime will/may show square brackets if necessary (in this particular case it will not), but that doesn't matter.
Success!
Luc