Simple matrix question

Greetings, I have an easy matrix related question, if someone could manage to answer me that, I would be quite grateful.
I would like to know how is it possible to get the data from a solved answer to my next formula of choice in a matrix format.
In a an easy formula it is not a problem. For example a script of:
x=1
y=2
c=x+y
d=c+27
The line I was looking for was from the c to d bit, we could easyly get the answer to "d" from referencign the answer from "c".
But its a whole different game in a matrix, we have, dependign on the matrix, alot of lines and rows, what I would like to know is how would it be possible to get my data from a solved matrix.
For example:
A=random matrix, doesnt matter, 4x4 lets say
B=random matrix, doesnt matter, 4x4 lets say
C=A*B
now we have a new matrix C, 4x4, and out of that matrix I would like to solve a new matrix, getting the data from matrix C
D=C*3
I know you can just do the matrix, but I need to know how to get the data lines from matrix C individually, since I need those lines to solve electrical dc current systems. (not 4x4 i know).
I know I can individually type those answers out, but if possible Id like to do my whole work as one with only typing the numerical values of the raw data.
Thank you for your time of reading this.

1 Comment

but D is just 3: C D=C*3 Did you really mean that 3 can be a matrix?

Sign in to comment.

Answers (2)

Walter Roberson
Walter Roberson on 4 May 2012

1 vote

Do you mean C(1,:) and C(2,:) and so on?
Or do you mean that you want to know the symbolic formula for each element of C after C = A*B ? Because if that is what you want to know, remember that "*" is matrix multiplication so the formula for any one element of C will be messy.
Curves
Curves on 4 May 2012

0 votes

nope, thats it, working fine, ty

Categories

Tags

Asked:

on 4 May 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!