Skip to main content
18-Opal
December 6, 2021
Solved

MATRIX Caclulation help

  • December 6, 2021
  • 2 replies
  • 4592 views

Mathcad prime 7. Problems on Page 9

 

Answers not as expected. Probably issues on how I did the subscripts.

 

 

 

 

 

Best answer by StuartBruff

@ppal_255687 wrote:
Hi

Was not my intention to create zero . I simply wanted to sample every
second item.

Try something like the following, perhaps?

 

2021 12 06 a.png

 

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.   

 

2021 12 06 b.png

 

I've woken up far too early, so I'm sure there are better ways to do it ...

 

Stuart

 

 

2 replies

25-Diamond I
December 6, 2021

You forgot a vector index "i" when you defined Eqn.3

Werner_E_0-1638759898183.png

 

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=

Werner_E_1-1638760068244.png

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.

 

18-Opal
December 6, 2021
Hi

Was not my intention to create zero . I simply wanted to sample every
second item.
23-Emerald V
December 6, 2021

@ppal_255687 wrote:
Hi

Was not my intention to create zero . I simply wanted to sample every
second item.

Try something like the following, perhaps?

 

2021 12 06 a.png

 

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.   

 

2021 12 06 b.png

 

I've woken up far too early, so I'm sure there are better ways to do it ...

 

Stuart

 

 

21-Topaz II
December 6, 2021

Hi,

You missed a subscript

Capture.JPG