title: Inserting multiple links into an image in Matlab?
body: <p>This question is built off of this previous question <a href="https://stackoverflow.com/questions/6932128/inserting-a-link-into-an-image-in-matlab"><code>'here'</code></a> I want to make 256 points on the image that all lead to different pdf documents based on the location of the *. I dont want to have to code in 256 separate filepaths. I have attempted some code below and have not been having any luck so far. </p>
  
  <pre><code>for i = 1:256
  
      text(x(i),y(i),'*', 'ButtonDownFcn',['open(''' file ''');']);
  end
  
  function [filePath] = file()
      %h = impoint;
      %position = getPosition(h);
  
      filePath = strcat('C:\Documents and Settings\Sentinelle\Desktop\LCModel\sl5_knt1\sl5_',x(1),'-',y(i),'.pdf');
  end
  </code></pre>