Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hi,
I do problems that produce a square matrix in the s domain multiplied by a vector this is equal to a driver vector (circuit analysis). I build a matrix with constants R,C,L and s as the complex frequency. I invert this matrix and multiply by vector. I use symbolics to generate the vector. I then copy this result manually to a function and do my calculations in the s domain.
My problem is the copy and paste. If I change something in the matrix (add a resistor) then it changes and I have to manually repeat the copy and paste.
Is there a way to do this automatically.
I'm using 7.0 version now.
Thanks for the help
Andy
Solved! Go to Solution.
You should never resort to copy and paste but rather assign the results of a symbolic evaluation to a function or a variable and use that for further calculations.
Here are two simple examples
Note that the results in the first example (which where assigned to variables) can only be used in symbolic evaluations (because a and b were unknown), while in the second example the function created can be used numerically as well.
You should never resort to copy and paste but rather assign the results of a symbolic evaluation to a function or a variable and use that for further calculations.
Here are two simple examples
Note that the results in the first example (which where assigned to variables) can only be used in symbolic evaluations (because a and b were unknown), while in the second example the function created can be used numerically as well.
I feel silly.
Thanks alot!
Andy
Asking questions is usually not silly, but rather is the way we learn. And Werner is an excellent teacher!