Multiplying two columns in a matrix
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
itzhak mal
el 30 de En. de 2019
Comentada: Walter Roberson
el 30 de En. de 2019
Hi
I have loaded a text file into a matrix using dlmread function. this has 17 columns.. and now i want to add another column that is the multyplication of the 17th column and the 15th column. how do I do so?
thank you!!
0 comentarios
Respuesta aceptada
Walter Roberson
el 30 de En. de 2019
YourArray(:,end+1) = YourData(:,15) .* YourData(:,17);
2 comentarios
Walter Roberson
el 30 de En. de 2019
TheNameOfYourArrayGoesRightHere(:,end+1) = TheNameOfYourArrayGoesRightHere(:,15) .* TheNameOfYourArrayGoesRightHere(:,17);
Más respuestas (0)
Ver también
Categorías
Más información sobre Spreadsheets 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!