MATLAB Answers

Parsing certain indexs in array

2 views (last 30 days)
m j
m j on 7 Sep 2016
Commented: Walter Roberson on 7 Sep 2016
So I have a 104X800 array . I need to plot only odd columns. then I need to have columns between 100-300 plotted, and not plot columns 1-100 and 300-400 example: say row 70 and only look at all odd columns.
I know I can exclude the last 100 columns with "end-100" and only plot odd columns with "1:2", but im having trouble with excluding beginning?? plot(data(70,1:2:end-100)');

  1 Comment

Walter Roberson
Walter Roberson on 7 Sep 2016
plot( data(70, 101:2:300) )

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by