From: epsilon noname on
Hi everyone,

I want to generate Excel spreadsheets thanks to Matlab, so I've searched into the product help.

I found the actxserver function and with the msdn, I can see all of the method available for excel.

However, I have some issues with the Charts.Add method.

Actually I already have these sheets :

| MySheet1 | MySheet2 |

And I want to insert a new Chart after "MySheet2", so I used this function :

Charts.Add([],Sheets.Item('MySheet2'));

But the created chart is placed before "MySheet2" and not after as I wish.

I've put [] as the first parameter (before), and "MySheet2" as the second parameter (after) but it doesn't seem to work.

Charts.Add method description (from msdn) :
http://msdn.microsoft.com/en-us/library/bb211680%28v=office.12%29.aspx

What have I done wrong ?

Thanks for your helpful hints ;)