xdata1=tempmeasS2.Timesec;
ydata1=tempmeasS2.UCNP;
plot (xdata1,ydata1)
err2 = tempmeasS2.UCNP1;
e2=errorbar(xdata1,ydata1,err2, 'b-', 'lineWidth', 1, 'HandleVisibility', 'on')
legend ('1 mg/mL')
The code that i have been used is as given above.
Thanks for your help.