129 views (last 30 days)

Leah
on 25 Sep 2013

You just have to reference every other element of the vector you created.

x=linspace(1.4, -3.5, 101) ;

y=x(1:2:end);

Matt J
on 25 Sep 2013

Edited: Matt J
on 25 Sep 2013

x=linspace(1.4, -3.5, 101) ;

y=x;

y(1:2:end)=[];

or

y=x(2:2:end);

Image Analyst
on 25 Sep 2013

Opportunities for recent engineering grads.

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

Start Hunting!
## 0 Comments

Sign in to comment.