Adding a number to all existing values within a column
古いコメントを表示
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
回答 (1 件)
This should get you started:
>> mat = rand(80000,4);
>> mat(:,2) = mat(:,2) + 14;
カテゴリ
ヘルプ センター および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!