필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to overwrite the structure reading data from xls file

조회 수: 2 (최근 30일)
anush
anush 2017년 8월 30일
마감: MATLAB Answer Bot 2021년 8월 20일
Hallo everyone, how can i overwrite my structure data after reading the data from an xls file.. I need to store the particular cell value to my structure
function [my_struct] = read_Data(FileName,SheetName)
[~,~,raw]=xlsread('xyz','Data');
% Data(cellfun(@(x) ~isempty(x) && isnumeric(x) && isnan(x),data)) = {''};
%%Allocate imported array to column variable names
mystruct = cellVectors(:,1);
mystruct.device(ii,1).Name = data(:,1);
mystruct.device(ii,1).value = data(:,2);
my_struct=raw;
end

답변 (0개)

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by