Hi, in column 3 of table1 contains both decimal values and String values , i need to make the entire row as empty that contains other than decimal values. I am attaching sample code here.
d1= {'0.1';'0.2';'0.3';'0.4';'0.5'};a1 = {'fix';'run';'debug';'continue';'break'};b1 = {'70';'72';'70';'50';'C'};c1 = {'DAC';'DAC';'DAC';'DAC';'DAC'};table1=[d1,a1,b1,c1] for i = 1:size(table1) table1{i,3} =str2num( table1{i,3}) if table1{i,3}==[0] table1{i,:}=[] endend
Please help me if anyone knows…
Best Answer