Adept Scientific - English
The world's best software for research, science and engineering.
flag arrow
clearclear
 

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKusdedksvnofi
Home
Products
Training
Consultancy
 Buy Online
Downloads
Education
Support
My Adept
International |  About Us |  Contact Us |  Press Room |  Jobs


The Next Steps

• Ask us a question
• Buy Mathcad Now
• View Mathcad Pricing
• Request a Demo
• Download a Brochure
• Find out about Training
• Sign up for a Webinar
• Meet Our Team
• Read our RSS Feeds

Learn More

Mathcad Home
What can Mathcad do?
Version Comparison Chart
Mathcad for Education
Add-ons
Rave Reviews

System Requirements

Latest Information

New Features in Mathcad 14
Using Mathcad and Excel
Engineering Application
Packs

Return on Investment

Service & Support

Patches & Downloads
Chemical & Process
Engineering with Mathcad

Frequently Asked Questions
Search the Knowledge Base
Join the Discussion List
Search the List Archive
Mathcad Library

List Archives >  Mathcad List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[mathcad] RE: How to fill a column of a matrix?

Search email archive for  

[mathcad] RE: How to fill a column of a matrix?
Author: Marc Artzrouni    Posted: Wed, 18 Jan 2006 12:44:11 +0100

Many thanks to all those who suggested using the column operator - and
that works just fine for a whole column. My problem
is in fact a bit more general . I want to be able to fill any m by n
rectangular subset of a matrix A with a matrix M of dimension m by n.
So I really want a function submatrixin (inspired by the existing
"submatrix") :
A1=submatrixin(A,r1,r2,col1, col2, M) that creates a replica A1
of A and replaces row r1 to row r2 and column col1 to col2 of A with M
. Of course the dimensions have
to be right ; if M has m rows and n columns then r2-r1+1 must be m and
col1-col2+1 must be n.
The obvious answer if no such function exists is to write it myself - it
will take all of 3 or 4 lines.
It could be in a special "myfunctions.mcd" file
with other generic "personnalized" functions that I can have easy access
to by adding a "reference" to myfunctions.mcd in any worksheet
in which I would need submatrixin. No doubt that's routine for all the
MathCad experts out there.
I suspect though that a "built-in" function would do the job a lot
faster and better than my own function -
particularly if the program has to go get the function in another
file ! !

Marc Artzrouni


Marc Artzrouni
Département de Mathématiques (IPRA)
Université de Pau - BP 1155
64013 Pau Cedex
FRANCE

Home page/page perso:
http://www.univ-pau.fr/~artzroun/
**********************************
tel: + 33 - (0)5 59 40 75 50
fax: + 33 - (0)5 59 40 75 55
e-mail: "marc.artzrouni"
**********************************



[View Complete Thread]



Previous by date: [mathcad] Re: Help with creating a vector,  Sven Lindhardt
Next by date: [mathcad] How to create a subvector from a vector?, Koko Koko
Previous thread: [mathcad] RE: How to fill a column of a matrix?,  Oakley, Philip SELEX UK
Next thread: [mathcad] How to create a subvector from a vector?, Koko Koko



Ready to buy?

Mathcad: single user licence
Add to shopping basket
$ 1,195.00
Upgrade to Mathcad 14 from version 12 or 13
Add to shopping basket
$ 325.00
Upgrade to Mathcad 14 from version 11, 2001i, 2001 or 2000
Add to shopping basket
$ 425.00

Featured Downloads

Mathcad 14 demo
Mathcad 14 Brochure
Mathcad or Excel?
Mathcad Customer Story: Man B&W Diesel
Mathcad Customer Story: Stork Fokker Aerospace
Mathcad White Paper - Moving beyond the limitations of spreadsheets

Product Reviews

"Our work ranges from complex medical imaging research to large-scale mapping and diagrams and we need a tool that is able to handle anything we investigate. With Mathcad, we are able to manipulate and analyse our data quickly while at the same time documenting our work, for sharing and publication. We also use it for pilot studies conducted in support of research grant applications. It is an end-to-end tool for research and development."
Dr. Kenneth Castleman, President of Advanced Digital Imaging Research (ADIR), Houston, Texas

"Mathcad is an integral product for my work... With Mathcad, itís easy to disseminate design calculations because the documents look like real math. Thereís very little I canít do in Mathcad. The main benefits come from the format, which resemble a typed set of calculations. These programs are easier to develop by engineers and easier for others to follow and review since the logic is expressed in a familiar manner. The format is what places Mathcad head and shoulders above other programs of a similar function."
Andre Pavlov, Structural Engineer, Florida Department of Transportation
adept

Top of the Page

Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2007, Adept Scientific plc.
Site designed and maintained by Adeptise

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055