×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# I have a matrix that I'm doing calc

## I have a matrix that I'm doing calc

(OP)
The program is SMath Studio.

I have a matrix that I'm doing calculations in, and it uses units. Is there any way of converting the units within the matrix. I'm looking to convert them to kN and kPa, etc. The default values are a bit 'clunky'. I've attached an example.

### RE: I have a matrix that I'm doing calc

Why not just use unitless values in the matrix, then multiply the matrix by the necessary unit?

Something like:

X := [ 1,1,1;2,2,2;3;3;3 ] * kPa

Aside: What is the "1" text doing in your matrix in the left-hand column? Is that a non-numerical annotation?

STF

### RE: I have a matrix that I'm doing calc

(OP)
The wind loading forces on the various surfaces are defined as: 1, 1E, 2, 2E, 3, 3E, etc. I'm using the string (text) value to identify the forces and surfaces. SMath allows the various column values in a matrix to be different units... some are meters, some kiloNewtons, some kiloPascals... I can try treating the items as a vector, but, am using elements of the matrix for calculating other elements in the matrix, sometimes based on 'if' constructs and 'for' constructs.

Dik

### RE: I have a matrix that I'm doing calc

(OP)
Added a part of the calculations... in fact, the matrix starts as a single 8x1 matrix and the other one starts as a 12x1 matrix and ends up as a 8x15 or 8x16 matrix or a 12x... All the added columns are added by calculations similar to attached.

Dik

### RE: I have a matrix that I'm doing calc

Out of my depth now... I'm still just using Smath for simple stuff. The notations are all different. IIRC, Mathcad R13 refused to tolerate mixed units in matrices.

To slightly improve the clunkiness of units, can you re-define them, or better yet define new ones?

You may find some tips here: http://people.stfx.ca/bliengme/SMath/SmathPrimer.p...

STF

### RE: I have a matrix that I'm doing calc

(OP)
Why simple stuff... it's much better... my problem is thsy I'm curious, and have found a new toy. I'll try re-defining things; I understand that units can be redefined. and maybe make kPa and N the default.

Forgot to say thanks... I generally put revisions in itallics.

Dik

### RE: I have a matrix that I'm doing calc

(OP)
SparWeb: The attached shows another example of using 'mixed' variables in a matrix/array. It's incredible for accessing data. The arrays are dynamic, so you can add additional columns to them; I haven't tried rows. You can insert values, or calculate values... really handy.

Dik

### RE: I have a matrix that I'm doing calc

That is interesting!

BTW, around my house is #2 for 6 inches, and then #6 down as far as I've ever cared to dig!

STF

### RE: I have a matrix that I'm doing calc

(OP)
and can be very powerful...

Dik

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

#### Resources

Research Report - How Engineers are Using Remote Access
Remote access enables engineers to work from anywhere provided they have an internet connection. We surveyed our audience of engineers, designers and product managers to learn how they use remote access within their organizations. We wanted to know which industries have adopted remote access, which software they are using, and what features matter most. Download Now
eBook - Managing the Context of Product Complexity Using the Digital Twin
Keeping track of changes to complex products is difficultâ€”think Aerospace & Defense equipment, new generations of commercial aircraft, and software-based automobiles. A new way to managing the digital context of the physical product is required and the answer is the Digital Twin. This ebook explores the opportunity available for Operations and Maintenance for the Digital Twin. Download Now
White Paper - Trends in Industrial Filtration
Substantial progress has been made in filtration technologies in recent years. New filter media materials, designs and processes have led to filters that are more efficient, reliable, compact and longer lasting. This white paper will discuss the various trends that are impacting operational responsibilities of MROs today and the resources that are available for staying up-to-date on the latest filtration solutions. Download Now

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!