You are on page 1of 1

Matlab Code: >> [num,txt,ndata] = xlsread('Example_table.

xlsx'); %Importing data to Matlab >> x=txt; >> %Defining Variables >> Source=x(:,3); >> Gene=x(:,4); >> Mutation=x(:,5); >> Platform=x(:,6); >> y=num; >> expID=y(:,2); >> A=strcmpi('Oncocarta',Platform); %Comparing strings >> B=strcmpi('Sequenom',Platform); >> C=strcmpi('Xenograft',Source); >> while (((A|B==1)& C)==1) result=[expID Source Platform]; %Displays these values only when the condition holds true disp(result) end

You might also like