buf = ones(10000,1)*nan;

i = 1; x = rand(10000,1);

for i <= 10000 buf(i,1) = x i = i+1; end plot(buf)

Skip to content# MATLAB: Can i change the x axis without changing the plot? So i have a array with 10000 numbers in it, i want to plot thoes 10000 numbers in time, like 0-10sec insted of 0-10000.

###### Related Question

arrayplotxaxis

buf = ones(10000,1)*nan;

i = 1; x = rand(10000,1);

for i <= 10000 buf(i,1) = x i = i+1; end plot(buf)

- How to double the data in x axis plot
- I need to generate a GUI that displays a random number between 0-10000 everytime “Button” is pressed
- EMERGENCY Cannot plot “10,000*exp(-10000*t);”
- Change of whole row in matrix
- Numbers in command window printed 10000 times smaller
- Customised x data in matlab plot
- Is XLSread dividing the numbers by 10000
- Plotting elements corresponding to a matrix

## Best Answer