MATLAB Answers


plotting data points at unevenly spaced intervals

Asked by richard
on 19 Sep 2013

I am wanting to plot data so that the independent variable is multiplied by a factor of 0.025 starting with the independent variable s=0

so for example, I want my independent variable (which will be input into a function and plotted) to be like this s_1=0*.025 s_2=1*0.025 s_3=2*.025 ...

How do I tell matlab to do this?




1 Answer

Answer by Jan Simon
on 19 Sep 2013
Edited by Jan Simon
on 19 Sep 2013
s = 0:0.025:10

These are the fundamental basics of Matlab. Reading the Getting Started chapters of the documentation is recommended to learn them.


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!