C_ = log10(C);figure(2);semilogy(T,C,'-');xlabel('time');ylabel('concentration(mg/L)');%PART C
t = [17,19,21,23 ]; c = [8.1,4.3,2.3,1.1];% series of data points
cnew = log10(c);y_1 = interp1(t,c,25,'linear','extrap')y_2 = interp1(t,c,27,'linear','extrap')y_3= interp1(t,c,29,'linear','extrap')c_linear = 10^(cnew)
MATLAB: I converted log to linear in part c and it’s giving me error
MATLAB
Related Question
- Help with non working for loop for generating a matrix
- How to fix error about interp1
- Non linear fitting with constraints
- Multiple plots are not showing in the code
- Unable to perform assignment because the left and right sides have a different number of elements
- Change numbering inside cell
- Interpolation of data that depends on two variables
Best Answer