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!