how can we do a struct that contains the data from a sheet from excel with strings and numbers

답변 (1개)

Image Analyst
Image Analyst 2021년 12월 21일

0 개 추천

You can do
[numbers, strings, rawCA] = xlsread(fileName);
to get data from Excel. To put that into a structure variable in MATLAB you need to manually assign the fields, like if s is your structure
s.numbers = numbers;
s.strings = strings;
s.ca = rawCA;
Now s is a structure.

카테고리

도움말 센터 및 File Exchange에서 Structures에 대해 자세히 알아보기

질문:

2021년 12월 21일

답변:

2021년 12월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by