how to convert double .mat file to a column of numbers on excel

4 views (last 30 days)
Hi everyone, I have the following .mat file made up of data that I want to report in an excel column? how can i save this data in the form of numbers and not text in an excel file? is it possible to save both on a new excel file and on an existing excel file? Would anyone know how to help me?

Answers (1)

Mathieu NOE
Mathieu NOE on 24 Nov 2020
hello
so this is a very basic code to load the data and store it as one column in an excel file.
I am not sure to understand what you mean by : how can i save this data in the form of numbers and not text in an excel file?
data = load('output_destazionalizzato.mat');
vector = (data.output_destazionalizzato)'; % transpose to make it column wise
xlswrite('file.xlsx',vector); % write in excel file

Categories

Find more on Data Import from MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!