Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I add the MathWorks logo to an image in MATLAB?
    primarykey
    data
    text
    <p>I had asked in a <a href="https://stackoverflow.com/questions/1526898/how-do-i-reproduce-this-heart-shaped-mesh-in-matlab">previous question</a> about how to reproduce <a href="http://zedomax.com/blog/wp-content/uploads/2008/09/i-love-math.jpg" rel="nofollow noreferrer">an image</a> in MATLAB. Now, I want to modify that image by removing the word "Math" and replacing it with the <a href="http://www.mathworks.com/products/demos/shipping/matlab/logo_01.png" rel="nofollow noreferrer">MathWorks logo</a>.</p> <p>I'm having trouble figuring out how to add the logo to the figure and adjust its position.</p> <p>Here's the code I have been trying to use to add the logo to the figure:</p> <pre><code>L = 40*membrane(1,25); logoFig = figure('Color',[1 1 1]); logoax = axes('CameraPosition', [80.5 50 42.5],... 'CameraTarget',[26 26 10], ... 'CameraUpVector',[0 0 1], ... 'CameraViewAngle',9.5, ... 'DataAspectRatio', [1 1 .9],... 'Position',[0 0 1 1], ... 'Visible','off', ... 'XLim',[1 51], ... 'YLim',[1 51], ... 'ZLim',[-13 40], ... 'parent',logoFig); s = surface(L, ... 'EdgeColor','none', ... 'FaceColor',[0.9 0.2 0.2], ... 'FaceLighting','phong', ... 'AmbientStrength',0.3, ... 'DiffuseStrength',0.6, ... 'Clipping','off',... 'BackFaceLighting','lit', ... 'SpecularStrength',1.1, ... 'SpecularColorReflectance',1, ... 'SpecularExponent',7, ... 'Tag','TheMathWorksLogo', ... 'parent',logoax); l1 = light('Position',[40 100 20], ... 'Style','local', ... 'Color',[0 0.8 0.8], ... 'parent',logoax); l2 = light('Position',[.5 -1 .4], ... 'Color',[0.8 0.8 0], ... 'parent',logoax); %http://www.mathworks.com/products/matlab/demos.html?file=/products/demos/shipping/matlab/logo.html </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload