So you want to write a program in Matlab that writes 3 values in 3 cells in an Excel file? OR you need to read 3 cells from an excel file then change them with Matlab then re-write them in the excel. If so then perhaps you don't need a code, I mean how tough it is to change 3 single cells in an excel file?
If your problem is more complicated than this, then please skip the excel (#s) details and try this at the end of your code:
xlswrite('ExcelData.xlsx',glu,'A3');
xlswrite('ExcelData.xlsx',atp,'A57');
xlswrite('ExcelData.xlsx',pyr,'A60');
This overwrites the values in resp. A3, A57 and A60 and writes glu, stp and pyr variables' values (they are numbers), maybe you want to use (str2double) function instead of (str2num). The reference for the function xlswrite is
and it's easier to work with than you thought. This is the part about (writing data in Excel). A similar easy function, xlsread, is used to read them from the file, found in:
Tip: In MS Excel you can use (insert chart) to plot data, then select (series) each of which are containing, usually, (x-y) data. After you plot the curve you can right-click anywhere (chart area, line, axes, titles, labels.. etc) and change whatever you need (color, weight, size, even chart type, or data range).
Regards.