how to double the data in x axis plot

4 Ansichten (letzte 30 Tage)
Tino
Tino am 28 Mai 2019
Beantwortet: sugga singh am 28 Feb. 2021
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

Akzeptierte Antwort

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

Weitere Antworten (1)

sugga singh
sugga singh am 28 Feb. 2021
thanks.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by