I am trying to plot data in Excel from Matlab onto a chart template that I saved from Excel. I tried manipulating the VBA code to load the template which is
but I error out saying AddChart and ApplyChartTemplate is not a command. I have a feeling that I can do this with invoke but have had no luck trying something like this
template = 'C:....';
Chart = invoke(Excel,'ApplyTemplate',template);
Has anyone ever loaded a chart template and plotted to it successfully?