matrix using for loop

15 visualizzazioni (ultimi 30 giorni)
shiv gaur
shiv gaur il 29 Gen 2021
Commentato: Walter Roberson il 29 Gen 2021
I have a question regarding matrix multiplication using for loop for a general matrix
n1=1; n2=4; n3=4; n4=2;
Ai is the general matrix from this to find the value of A1 ,A2 ,A3 and A4
Ai= [ni ni^2; cos(ni) sin(ni)]
Display of matrix A1,A2,A3 and A4
Display of A1*A2*A3*A4.
  10 Commenti
shiv gaur
shiv gaur il 29 Gen 2021
write code
Walter Roberson
Walter Roberson il 29 Gen 2021
I just did.
%{
MYTABLE{1,1} * MYTABLE{2,1} * MYTABLE{3,1} * MYTABLE{4,1}
%}
That is code.
I will give you a further hint:
P = cell(10,1);
for K = 1 : 10
P{K} = randi(10,1,50);
end
Total = 0;
for K = 1 : 10
Total = Total + P{K};
end
plot(Total)

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements 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!

Translated by