how to double the data in x axis plot

1 view (last 30 days)
Hello
Please I have following plot on x axis : 1000, 2000, 3000, 4000, 5000, 6000
I want to double it so that it appears on graph; 2000, 4000, 6000, 8000, 10000, 120000
How do i do that?
Thank in advance
Regards

Accepted Answer

Monika Phadnis
Monika Phadnis on 29 May 2019
x = [1000 2000 3000 4000 5000 6000];
plot(x*2,y_name); % y_name is variable name of your y-axis data

More Answers (1)

sugga singh
sugga singh on 28 Feb 2021
thanks.

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!