How do I input a matrix into an equation?

7 visualizaciones (últimos 30 días)
Katherine Radovich
Katherine Radovich el 9 de Mzo. de 2021
Respondida: Walter Roberson el 9 de Mzo. de 2021
clear all; %clears the command window
global M; %defines each variable
global B;
global K;
M=2; %mass
K=400; %stifness
damp=[0.01,0.1,0.2,0.5,0.707,1,1.1,1.2];
B=2*(sqrt(K))*damp;
I'm trying to take the values for M, K, and B and put them into an ode45 function. The values for B are a matrix. Can someone please explain how to do this?

Respuestas (1)

Walter Roberson
Walter Roberson el 9 de Mzo. de 2021

Categorías

Más información sobre Numerical Integration and Differential Equations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by