Filter löschen
Filter löschen

Create equations in a loop

1 Ansicht (letzte 30 Tage)
Eddy
Eddy am 15 Jan. 2021
Beantwortet: KSSV am 15 Jan. 2021
Hi All
I want to create a system of equations from matrices and solve them. My inputs are as follows
Inputs
K = 275 * 275 matrix
F = 275 * 1 matrix
Solve for t, such that, K*t = F.
I tried the following lines but it results in an error.
syms t
Z = zeros(size(F));
for i = 1:numel(Z)
eqn = F(i)==K(1,:) * t;
Z(i) = double(vpasolve(eqn,t));
end
The equation line when displayed does not seem to be correct. Any help is highly appreciated.
Thanks

Antworten (1)

KSSV
KSSV am 15 Jan. 2021

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by