Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6991835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:33:22+00:00 2026-05-27T19:33:22+00:00

I have an image and after drawing some features(ellipses and text) on it I

  • 0

I have an image and after drawing some features(ellipses and text) on it I want to save it as JPEG.

h= figure(1);
imagesc(im_name);
colormap('gray');
hold on
for i=1:no_of_points;
//draw features and write some text
end
hold off
imsave (h);

I am getting a figure with features drawn on it but when I save it, it is an image (which is my orignal image ‘im_name’) without new features on it.

I tried also

.
.
.

imsave (h);
hold off

Thanx in advance for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:33:23+00:00Added an answer on May 27, 2026 at 7:33 pm

    Maybe you should try the function saveas

    saveas

    Save figure or Simulink block diagram using specified format

    Alternatives

    Use File > Save As on the figure window menu to access the Save As
    dialog, in which you can select a graphics format. For details, see
    Exporting in a Specific Graphics Format in the MATLAB Graphics
    documentation. Sizes of files written to image formats by this GUI and
    by saveas can differ due to disparate resolution settings. Syntax

    saveas(h,’filename.ext’) saveas(h,’filename’,’format’)

    Description

    saveas(h,’filename.ext’) saves the figure or Simulink block diagram
    with the handle h to the file filename.ext. The format of the file is
    determined by the extension, ext. Allowable values for ext are listed
    in this table.

    You can pass the handle of any Handle Graphics object to saveas, which
    then saves the parent figure to the object you specified should h not
    be a figure handle. This means that saveas cannot save a subplot
    without also saving all subplots in its parent figure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 3 images that I want to add one after other on a
I have image data and i want to get a sub image of that
I have: image 1:Many imageToTag Many:1 tag I want to issue a query that
So I have Image like this (source: de-viz.ru ) I want to get something
So I have Image like this (source: de-viz.ru ) I want to get something
I want to find contours in an image and further process them e.g. drawing
I have some troubles with saving a image from memorystream. Here is my code:
I am drawing an image from MetaFile (emf) and then apply some rotation transformations
I have a String and I want to paint it onto an image. I
I have a picture (bitmap) and I want to draw some shapes and rotated

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.