Adding a number to all existing values within a column
Afficher commentaires plus anciens
How does one add a value to one single Column in a 80000 × 4? I am asked to add 14 to the values in column 2, but I can't figure out how. It also asks to plot the 80000 × 4 data. Please and thank you
Réponses (1)
This should get you started:
>> mat = rand(80000,4);
>> mat(:,2) = mat(:,2) + 14;
Catégories
En savoir plus sur Line Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!