Convert 1D waveform signal sampled at 160 samples per cycle to 2D image

1 回表示 (過去 30 日間)
Harish Balaga
Harish Balaga 2021 年 5 月 20 日
コメント済み: Kamila Jankowska 2022 年 12 月 15 日
I have a sinewave like signal which I want to sample at certain frequency. Now it generates a column matrix with number of rows equal to number of samples. If I use a plot command, it will generate same figure as the original. However, I want to represent that waveform as an 2D image with size L x B x 1 (grey image) or L x B x 3(RGB image) that can be visualized using imshow() , so that i can feed it to a CNN in deeplearning toolbox. As I need to convert parts of coninuous signal into multiple images I cannot use any method to save plot as jpg or similar format.
For better understanding, check the attached image
Is there a way?
  1 件のコメント
Kamila Jankowska
Kamila Jankowska 2022 年 12 月 15 日
Hi,
did you solved the problem? I got the same issue.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by