How can i make an image from a .mat file?
4 ビュー (過去 30 日間)
古いコメントを表示
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;
0 件のコメント
回答 (1 件)
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
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!