I have a cell array with one column and thirty one rows, and I'm going to plot the array so that the horizontal axis changes from one to thirty one, and the vertical axis corresponds to values like peer to inside cell. my cell array :
data2 =
31×1 cell array
'2.4392E-09' '2.6506E-09' '3.0690E-09' '4.0424E-09' '7.1719E-09' '1.8084E-08' '6.0006E-08' '2.1621E-07' '7.7861E-07' '2.6695E-06' '8.4323E-06' '2.3340E-05' '5.1783E-05' '1.1155E-04' '2.6871E-04' '3.4549E-04' '2.6871E-04' '1.1155E-04' '5.1783E-05' '2.3340E-05' '8.4323E-06' '2.6695E-06' '7.7861E-07' '2.1621E-07' '6.0006E-08' '1.8084E-08' '7.1719E-09' '4.0424E-09' '3.0690E-09' '2.6506E-09' '2.4392E-09'
and
i2 =
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
and part of my code for plot is:
i=1:1:31
data2=data(:,1)
i2=transpose(i);
i2=i2(:,1)
plot(i2,data2)
datacreated? What data type is in there?%finstead of%s? That way you should get a normal numeric array that you can directly plot.