Borrar filtros
Borrar filtros

What should be adjusted to make the script run?

1 visualización (últimos 30 días)
Emily Simon
Emily Simon el 29 de Nov. de 2016
Comentada: Big dream el 5 de Dic. de 2016
I am trying to find the truss member stiffness matrix and I am inputting
k_member _ 1=1/L1*[c1 s1 0 0; 0 0 c1 s1]'*[1 -1; -1 1]*... [c1 s1 0 0; 0 0 c1 s1];
I have defined c1, s1, and L1 previously.
It says "Unexpected matlab expression"

Respuesta aceptada

Steven Lord
Steven Lord el 29 de Nov. de 2016
Variable names cannot contain spaces. "k_member _ 1" (where the quotes are simply to denote the start and end of the name, but are not part of the name) is not a valid variable name; "k_member_1" (same explanation for the quotes) is a valid variable name.

Más respuestas (1)

Big dream
Big dream el 29 de Nov. de 2016
Could you write again the whole function from k_member_1
  2 comentarios
Emily Simon
Emily Simon el 29 de Nov. de 2016
k_member _ 1=1/L1*[c1 s1 0 0; 0 0 c1 s1]'*[1 -1; -1 1]* [c1 s1 0 0; 0 0 c1 s1];
Big dream
Big dream el 5 de Dic. de 2016
i think the value from each L1,s1,c1 are not correct.
I've tried your syntax, but its correct.

Iniciar sesión para comentar.

Categorías

Más información sobre Structural Analysis 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