Author Topic: Matlab images  (Read 2179 times)

Sang-drax

  • You created me, friend, you created me.
  • Jackass IV
  • Posts: 282
  • Karma: +10/-10
    • http://strandmark.com
Matlab images
« on: April 15, 2005, 05:21:46 PM »
Can you somehow convert the contents of a figure to a matlab image with a function?
 
I know the File->Export menu option, but I want to do it with code and hopefully be able to save bitmaps with really big resolution.

Perspective

  • badfish
  • Jackass In Charge
  • Posts: 4635
  • Karma: +64/-22
    • http://jeff.bagu.org
Matlab images
« Reply #1 on: April 16, 2005, 06:11:43 PM »
not sure about bitmaps but,
Code: [Select]

[x,map] = gifread('filename.gif');
gifwrite(x, map, 'filename.gif');

Sang-drax

  • You created me, friend, you created me.
  • Jackass IV
  • Posts: 282
  • Karma: +10/-10
    • http://strandmark.com
Matlab images
« Reply #2 on: April 17, 2005, 10:06:03 AM »
I want to save a figure I've drawn with plot commands at really high resolution.

I can save it as bmp, gif or any format, but the width and height of the image is always equal to the size of the window. I want it to be much larger.