Writing data into an array
2 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Wayne King
2012-4-29
Can you be more specific what you mean by store? Images in MATLAB are naturally matrices, either 2-D matrices, or 3-D for something like an RGB image. For example:
imdata = imread('ngc6543a.jpg');
You can store the result in a .mat file, or you can use imwrite to write a specific image format, or a number of other more basic file writing routines.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!