开发者

Write a binary image to a mat file - matlab

开发者 https://www.devze.com 2023-02-25 06:22 出处:网络
I have an image which开发者_运维百科 is in binary format. Width and height are 10 and 10. I want this image to write to a .mat file. When I save this image to a .mat file. It display as a 10x10 matrix

I have an image which开发者_运维百科 is in binary format. Width and height are 10 and 10. I want this image to write to a .mat file. When I save this image to a .mat file. It display as a 10x10 matrix. But, what I want is 100 values as a row or a column to be written to the .mat file, not 10x10 matrix. Can someone please help me?


You can turn any matrix into a vector like this: x(:).

0

精彩评论

暂无评论...
验证码 换一张
取 消