cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are aware of an issue causing intermittent login problems for some users following a recent update. Learn More

Translate the entire conversation x

Assign matrix column as another column in a different matrix

RH_9815461
10-Marble

Assign matrix column as another column in a different matrix

I have a matrix and i need to assign the first column as a second column in another matrix , can this be done without identifying each individual element?

 

RH_9815461_0-1638868356518.png

In the example above id like to be able to create matrix D without having to specify every element from matricies A and B . Hopefully with the output as per matrix C.

 

Thanks , 

 

Ross 

ACCEPTED SOLUTION

Accepted Solutions

solved with augument function

View solution in original post

2 REPLIES 2

solved with augument function


@RH_9815461 wrote:

I have a matrix and i need to assign the first column as a second column in another matrix , can this be done without identifying each individual element?

 

RH_9815461_0-1638868356518.png

In the example above id like to be able to create matrix D without having to specify every element from matricies A and B . Hopefully with the output as per matrix C.

 

Thanks , 

 

Ross 


 

In addition to augment (and stack), you could also use the column and row operators to set entire array columns and rows, even if the array doesn't already exist.

 

2021 12 07 a.png

 

Stuart

 

 

Announcements


Top Tags