My approach:
y = randi(10, 4E+4, 1); % Simulated Data
x = 1:length(y); % ‘x’ (Independent) Variable
figure(1) % Plot
plot(x, y)
grid
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!