Dividing each column value by another column value in a matrix
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
mzw
el 7 de Mzo. de 2019
Comentada: madhan ravi
el 7 de Mzo. de 2019
I have a structure with a bunch of values that looks kind of like this but way more rows and columns. So for this example I have 5 Rows and 4 columns. How can I loop through this matrix and divide each row in column 3 and 4 by each other and print the output.
3.8 4.2 1.5 2.3
2.1 4.1 1.8 2.9
4.5 4.4 1.5 5.4
2.1 3.4 1.2 3.5
2.5 3.8 4.1 4.9
So following this example ide want the following:
1.5/2.3
1.8/2.9
1.5/5.4
1.2/3.5
4.1/4.9
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!