Skip to main content
1-Visitor
November 10, 2015
Solved

Logical Indexing Functionality

  • November 10, 2015
  • 2 replies
  • 4706 views

I'm a MathCAD 15 user. Does MathCAD have logical indexing function? In other words I want to find the indices in a matrix where the values of the matrix are within some criteria. For instance I would like to find the row and column numbers in the matrix below that are between -3.8 < G(i,j) < 2.3? Sure I could write a small function to do this but if I were using Matlab A=G(G<2.3 & G>-3.8) would get me what I need.

Capture.JPG

Best answer by MikeArmstrong

Much nicer version.

Slight alternative to my version (plagiarising Richards method) below with nested matrix removed.

Mike

2 replies

1-Visitor
November 10, 2015

Something like the attached?

Mike

19-Tanzanite
November 10, 2015

How about this:

1-Visitor
November 10, 2015

Much nicer version.

Slight alternative to my version (plagiarising Richards method) below with nested matrix removed.

Mike