Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Convert matrix of syms to hold real values.

1 visualizzazione (ultimi 30 giorni)
Jonathan
Jonathan il 31 Ott 2014
Chiuso: MATLAB Answer Bot il 20 Ago 2021
Hello.
I have a slight problem, here is my code:
syms sig11; syms sig22; syms sig12;
sigmat = [sig11,sig22,sig12];
f = sqrt(3/2*sigmat*P*sigmat.');
dfdsig = [diff(f,sig11);diff(f,sig22);diff(f,sig12)];
df2dsig2 = [diff(dfdsig(1),sig11),diff(dfdsig(1),sig22),diff(dfdsig(1),sig12); diff(dfdsig(2),sig11),diff(dfdsig(2),sig22),diff(dfdsig(2),sig12); diff(dfdsig(3),sig11),diff(dfdsig(3),sig22),diff(dfdsig(3),sig12)];
What I want to do here is to change sig11,sig22 and sig12 to hold real values so that I can use my obtained matrix.
How should I do this?

Risposte (1)

Star Strider
Star Strider il 31 Ott 2014
You will find the subs function to be your friend here.

Community Treasure Hunt

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

Start Hunting!

Translated by