Adding a number to all existing values within a column
Show older comments
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
Answers (1)
This should get you started:
>> mat = rand(80000,4);
>> mat(:,2) = mat(:,2) + 14;
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!