What code can I use to get a signal from the image?
2 views (last 30 days)
Show older comments
pantea sam on 27 Dec 2022
Answered: Hiro Yoshino on 27 Dec 2022
Can I use another code besides this one?
YourSignal = original(:);
Hiro Yoshino on 27 Dec 2022
Taks this as an example.
im = imread("coins.png");
if you want to convert the matrix into either row or column vector:
im_row = reshape(im,1,)
im_col = reshape(im,,1)
if you just swap the row and column (n x m >> m x n)
im_reshape = reshape(im,size(im,2),size(im,1));
Note that the pixels are numbered from top to bottom and from left to right.
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!