I have 4X4 stiffness matrix and evey element in matrix is a vecor. How can I write 'for' loop for this matrix so that I will get number of matrices according to variable as element in the matrix?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Sandip More
il 26 Dic 2013
Commentato: Sandip More
il 26 Dic 2013
I am trying to vary my matrix of size 4X4. The element in the given matrix are the vectors of 10X1. Please help
2 Commenti
Azzi Abdelmalek
il 26 Dic 2013
I will get number of matrices according to variable as element in the matrix?
What does that mean. Can you explain that with a short example, let us say a 2x2 cell array
A={[1 2],[3 4];[5 6],[7 8]}
Risposta accettata
Azzi Abdelmalek
il 26 Dic 2013
I don't see where is the problem. For example:
k1=2;
k2=3;
A=[112 2+k1; 2*k1+k2 12]
%If you want to change A, just change the values of k1 and k2,
k1=4;
k2=10;
A
3 Commenti
Azzi Abdelmalek
il 26 Dic 2013
Why are you asking? just test your code in Matlab command, and you will see the result.
k1=[1 2 3 4 5];
k2=[1 2 3 4 5];
A=[112 2+k1;2*k1+k2 12]
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!