My mat lab skills are pretty low, basically i want to know how to make a waveform using 1000 points of data.(adsbygoogle = window.adsbygoogle || []).push({});

if the data is for example

y = 1 for 0<n<0.1

y = 2 for 0.1<n<0.5

y = -5 for 0.5 < n < 1

so how could i plot this waveform using 1000 points of data

cheers

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Help Plotting a Signal Waveform

**Physics Forums | Science Articles, Homework Help, Discussion**