How can I plug vector values into a matrix?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a matrix that depends on different x, y and z values. I want to put in different vector values in the matrix and make a series of calculations. How can I do this?
2 Kommentare
Rik
am 6 Nov. 2020
Do you mean you want to interpolate a 3D array? Can you provide a bit more explaination?
What have you tried?
Antworten (1)
Sreeranj Jayadevan
am 17 Nov. 2020
If 'Vec' is your 1000 by 3 vector and it is of the form
[x1 y1 z1;
x2 y2 z2;
x3 y3 z3;
........
........
........]
and since you are finding the Jacobian matrix, you can replace the variable x with Vec(i,1), y with Vec(i,2) and z with Vec(i,3) within the Jacobian matrix and then loop through the variable 'i'. (i=1,2,3.....1000)
You can also go through the "jacobian" function and check if it helps with the problem at hand: https://in.mathworks.com/help/symbolic/jacobian.html
0 Kommentare
Siehe auch
Kategorien
Mehr zu Operating on Diagonal Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!