Adding a number to all existing values within a column
Ältere Kommentare anzeigen
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
Antworten (1)
This should get you started:
>> mat = rand(80000,4);
>> mat(:,2) = mat(:,2) + 14;
Kategorien
Mehr zu Line Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!