MATLAB Answers

Change the data from table format to double format

55 views (last 30 days)
Hussein Hasan Mohsen
Hussein Hasan Mohsen on 11 Dec 2020
Answered: Image Analyst on 11 Dec 2020
Hello everyone
is there any way to change the data from table format to double format in matlab
i want to make the (trainingdata) in double format in one file

Answers (3)

Cris LaPierre
Cris LaPierre on 11 Dec 2020
See this link on how to import a spreadsheet into MATLAB.
See this page for instructions on how to access data in a MATLAB table.

SHIVAM KUMAR
SHIVAM KUMAR on 11 Dec 2020
%Just import the table in matlab and it shall come as double .
%Later you can select the required columns using
trainingdata(:,1) %or trainingdata(:,n);
where n is the required column provided the imported varable is training data. or use that name.
  3 Comments
Hussein Hasan Mohsen
Hussein Hasan Mohsen on 11 Dec 2020
Its not as what i want.....but however i found other way
thank you

Sign in to comment.


Image Analyst
Image Analyst on 11 Dec 2020
Try this:
[numbers, strings, raw] = xlsread('trainingdata.xlsx');
numbers is your double array.

Community Treasure Hunt

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

Start Hunting!

Translated by