Post reply

Note: this post will not display until it's been approved by a moderator.

Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: mali28
« on: January 19, 2012, 06:02:31 PM »

When you display the results in your console, use fprintf function. For example if you have temperature (T), velocity (V) and time (t) which you want to export to excel then use the following code to display it:


fprintf('Temperature, Velcoity, Time \n');

fprintf('%8.3f, %8.3f, %8.3f \n',T, V, t);

It will display the results in the console. You can copy the results and paste it in notepad.
Save the notepad file as "name.csv"

When you open that CSV file you will see the values of Temperature, Vel. and time in three separate columns. You can copy each column in excel or use the CSV as excel. But you will not be able to save formatting in CSV so its better to copy in excel.

Posted by: piso
« on: January 17, 2012, 08:03:50 PM »

How do I export the results of MATLAB to excel? I have time, temperature and velocity values in three columns. I want to export the values to Excel. Can anyone help me in this?

Thanks.