Effacer les filtres
Effacer les filtres

Add vectors into a matrix using for loop

2 vues (au cours des 30 derniers jours)
Steven Martin
Steven Martin le 11 Avr 2018
mode 1 is an imported matrix of 3x7 (imported data)
syms x y z
for x = -0.1:0.05:0.1
for y = x = -0.1:0.05:0.1
for k = 1:3
eps2 = mode1(k,5)*mode1(k,5);
X_0 = [mode1(k,1) mode1(k,2) mode1(k,6)];
X = [x y z];
R = X - X_0;
end
end
end
Want to produce a matrix that stores each vector R. For example the first vector that is produced as row 1, second vector produced row 2, third vector produced row 3, etc. Ultimately I need to contour this.

Réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by