필터 지우기
필터 지우기

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 (최근 30일)
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.

채택된 답변

Prince Kumar
Prince Kumar 2021년 11월 18일
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개)

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by