How to add 'Description' to '.jpeg'?
4 views (last 30 days)
Pawel Jastrzebski on 20 Mar 2018
Once I've generated a plot and saved it as .jpeg, I'd like to add a description to it i.e.:
- 'This plot was created with script version 01'
The code for saving the plot is simple:
x = 0:0.1:4
fig(1) = figure
And then I tried to access the image info to modify it but to no avail:
fileName = 'fig.jpg';
i = imread(fileName)
info = imfinfo(fileName)
info.Comment = 'Made with script version 1';
- Is what I'm trying possible?
- If so, how?