 |
|
List Archives > 
Mathcad List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
RE: [mathcad] resizing a matrix/vector
| RE: [mathcad] resizing a matrix/vector |
|
Author: Tom Boni
Posted: Mon, 8 Sep 2008 15:21:18 -0700 (
|
Philip,
I think I understand your point.
Isn't this why one needs to be sure that they haven't accidentally redefined their "variables" during the course of a calculation (?)
Although, couldn't one argue that the x in F(x) is a "true" variable?
Thanks again...
--- On Sat, 9/6/08, Philip Oakley wrote:
> From: Philip Oakley />
> Subject: RE: [mathcad] resizing a matrix/vector
> To: />
> Date: Saturday, September 6, 2008, 3:36 PM
> Tom,
>
> The hidden feature of MathCAD is that in reality it
> doesn't have any
> variables. It has named constants that exist for a part of
> a page between
> the point it is defined and the point that another of the
> same name is
> defined.
>
> The only 'unless' is that within a programme (with
> the black bar and the
> left pointing arrows) those variables are true variables
> that can be
> overwritten and are thrown away at the end of the
> execution.
>
> So if you define
> v:=stack(1,2,3,4,5,6,7,8,9)
> then
> v:submatrix(v,2,7,0,0)
>
> you now have two variables 'v' (both vectors) on
> the page and if you type
> "v=" and then drag it around, you will see the
> two results depending on
> where the "v=" is on the page.
>
> Also, if you have a set of indices 'index' to be
> used to pull out and
> re-order it you can use. you can even convert it to a
> little programme if
> needed.
>
> i:=0;..last(index)
> v[i]:=v[(index[i])]
> will also do it (I have closed the [] brackets subscripts,
> shown :=, and the
> range ;..
>
> Hope that helps.
> Philip
>
> -----Original Message-----
> From: Tom Boni />
> Sent: 05 September 2008 8:11 PM
> To: />
> Subject: [mathcad] resizing a matrix/vector
>
>
> What options are there for resizing a matrix/vector?
>
> For instance lets say I have a 1 x 9 vector and want to
> make it 1 x 6 or 1 x
> 12?
>
> Right now, I just create a new (empty) vector of the
> desired size...
>
> Just thought I'd ask in case there is an
> "on-the-fly" method that I am not
> aware of...
>
> In many cases the elements of the new vector are the same
> as elements in the
> existing vector...
>
>
>
>
> ---
> The Mathcad List - Discussion, Support & News
> Contributions: />
> Hosted by: Adept Scientific
> http://www.adeptscience.com
> List Archive: http://lists.adeptscience.co.uk/
> ---
> Would you like this to come to a different email address?
> ---
> Simply leave the mailing list (see below) and re-join by
> sending a blank email from the new address to:
> or
> ---
> You are currently subscribed to mathcad as:
> />
> To unsubscribe send a blank email to
> />
>
> ---
> The Mathcad List - Discussion, Support & News
> Contributions: />
> Hosted by: Adept Scientific
> http://www.adeptscience.com
> List Archive: http://lists.adeptscience.co.uk/
> ---
> Would you like this to come to a different email address?
> ---
> Simply leave the mailing list (see below) and re-join by
> sending a blank email from the new address to:
> or
> ---
> You are currently subscribed to mathcad as:
> />
> To unsubscribe send a blank email to
> />
---
The Mathcad List - Discussion, Support & News
Contributions: />
Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
You are currently subscribed to mathcad as: />
To unsubscribe send a blank email to />
|
[View Complete Thread]
Previous by date: Re: [mathcad] resizing a matrix/vector, Tom Boni
Next by date: [mathcad] new Design of Experiments functionality for Mathcad, Zeftel, Mona
Previous thread: [mathcad] getting plot data, Tom Boni
Next thread: [mathcad] new Design of Experiments functionality for Mathcad, Zeftel, Mona
|
|
|