I need to put the put the datas given under "group 3" in this attached excel file to two different arrays and plot them but i can't becuase they are writtien with a comma ","
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Erdem Turan
am 12 Nov. 2021
Beantwortet: Prince Kumar
am 18 Nov. 2021
I need to put the put the datas given under "group 3" in this attached excel file to two different arrays and plot them but i can't becuase they are writtien with a comma "," how can i solve this issue? i also need to do some calculations with these datas.
0 Kommentare
Akzeptierte Antwort
Prince Kumar
am 18 Nov. 2021
Hi Erdem Turan,
You can do it using "readtable" and "table2array" functions.
T = readtable('TensileTest_Data(1).xls');
x = table2array(T(:,7));
y = table2array(T(:,8));
Here 'x' and 'y' are the variable having the contents of "group 3". Now you can perform the calculations on this data.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!