Obtaining subimages with only the x axis values

1 回表示 (過去 30 日間)
shru s
shru s 2017 年 6 月 6 日
コメント済み: shru s 2017 年 6 月 12 日
I have the following graph
in between the vertical lines is the part of the image i wish to crop and save. Could anyone suggest how I can do this? Thank you

採用された回答

Walter Roberson
Walter Roberson 2017 年 6 月 6 日
section_widths = diff( [0, list_of_x_values, size(YourImage,2)] );
sections = mat2cell( YourImage, size(YourImage,1), section_widths, size(YourImage,3) );
Now sections will be a cell array of matrices each containing one block. You can extract some of them using {} indexing, and save as desired.
  1 件のコメント
shru s
shru s 2017 年 6 月 12 日
Thank you!

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by