Read the questions posted on this topic, couldn't find something relatively closer. I have a matrix of 512x40, from this, I want to plot, 1-28 columns and from 29, I want only odd column's to be plotted. Any help is appreciated.
A = Data(:,29:2:end);
The above one just plots odd columns from 29-end. How do I include 1-28 columns in this?

1 件のコメント

Sai Aparna Kalvapalle
Sai Aparna Kalvapalle 2016 年 8 月 30 日
One way would be manually defining the column/row numbers like a = (:,[1,2,3,4,5]); But this is lengthy. Is there any alternate method?

サインインしてコメントする。

 採用された回答

Stephen23
Stephen23 2016 年 8 月 30 日

0 投票

A = Data(:,[1:28,29:2:end]);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeShifting and Sorting Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by