Elements in xlsread output MATLAB version R2018a

조회 수: 1 (최근 30일)
GIorgi Tsutskiridze
GIorgi Tsutskiridze 2018년 4월 26일
편집: Walter Roberson 2018년 4월 26일
I am trying to understand the function that Matlab executes for importing data from excel file.
The very first function in the script generated from import command is the following:
%%Import the data
[~, ~, raw] = xlsread('C:\Users\gtsutskiridze\Documents\MATLAB\G10XRATE.XLS','g10xrate','A2:J6238')
raw(cellfun(@(x) ~isempty(x) && isnumeric(x) && isnan(x),raw)) = {''}
I have read the help file for xlsread and it says the following:
[NUM,TXT,RAW]=xlsread(FILE) reads data from the first worksheet in the
MicrosoftExcel spreadsheet file named FILE and returns the numeric data in array NUM.
Optionally, returns the text fields in cell array TXT, and the unprocessed data (numbers and text) in cell array RAW.
My question is the following: What do does ~ mean in the output of the xlsread [~, ~, raw] ?

채택된 답변

Walter Roberson
Walter Roberson 2018년 4월 26일
https://www.mathworks.com/help/matlab/matlab_prog/ignore-function-outputs.html
it means ignore output.
  댓글 수: 1
j.D
j.D 2018년 4월 26일
편집: Walter Roberson 2018년 4월 26일
Walter hope you are doing well i need your help with following problem a colleague of mine asked a question recently please have a look on it
Thanks in advance.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by