Multiplying two columns in a matrix
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
itzhak mal
le 30 Jan 2019
Commenté : Walter Roberson
le 30 Jan 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 commentaires
Réponse acceptée
Walter Roberson
le 30 Jan 2019
YourArray(:,end+1) = YourData(:,15) .* YourData(:,17);
2 commentaires
Walter Roberson
le 30 Jan 2019
TheNameOfYourArrayGoesRightHere(:,end+1) = TheNameOfYourArrayGoesRightHere(:,15) .* TheNameOfYourArrayGoesRightHere(:,17);
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Spreadsheets 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!