Mathcad prime 7. Problems on Page 9
Answers not as expected. Probably issues on how I did the subscripts.
Solved! Go to Solution.
@ppal wrote:
Hi
Was not my intention to create zero . I simply wanted to sample every
second item.
Try something like the following, perhaps?
Although, if I had Prime, I'd probably program a function to do the sampling.
As I've only got Express, I'll have to define a recursive function to do the job.
I've woken up far too early, so I'm sure there are better ways to do it ...
Stuart
You forgot a vector index "i" when you defined Eqn.3
Are you aware that all your vectors have every second value set to zero?
You don't see this when you type A[i= but you can see it when you simply type A=
The reason is that you defined the range "i" which you use to create all your vectors with a step width of 2. That way only elements with even index are created by your calculations and vector elements with odd index are automatically set to zero. Not sure if thats really what you intended.
@ppal wrote:
Hi
Was not my intention to create zero . I simply wanted to sample every
second item.
Try something like the following, perhaps?
Although, if I had Prime, I'd probably program a function to do the sampling.
As I've only got Express, I'll have to define a recursive function to do the job.
I've woken up far too early, so I'm sure there are better ways to do it ...
Stuart
Woiuld something like the following help?
BTW, when working with the vector its not necessary to ue the index in all cases - use the whole vectors instead. Furthermore I would suggest to also use the time information, too: