How can i make an image from a .mat file?

4 ビュー (過去 30 日間)
Ahamed Al Arifin
Ahamed Al Arifin 2020 年 3 月 2 日
編集済み: KALYAN ACHARJYA 2020 年 3 月 2 日
I have a .mat file. I want to make an image from that .mat file. The image i am getting is attached below. The image is just like a line. But i want it as a rectangle/square type of image.The code i am following is as follow-
filename = 'xcorrelation.mat';
s = load(filename);
% Extract array from structure.
n = s.xcorrelation;
imshow(n,[], 'InitialMagnification', 'fit');
axis on;

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 3 月 2 日
編集済み: KALYAN ACHARJYA 2020 年 3 月 2 日
The data n=7544x53 double, which is shown in the figure as per data size, if the data have more columns then it may be show more wider ractangle.
If I added more random columns with n, then see the result
Hence it shows the n as per the dataset size, which is 7544x53

カテゴリ

Help Center および File ExchangeImages についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by