Recent content by adeeyo

  1. A

    Using Newton Raphson for Root Finding and Parameters' Estimation

    Goood Day, I have a cubic root equation. I use Newton-raphson for finding the roots. I want to do parameter estimation (tuning of the equation parameters to be able to give better prediction) using experiment data. Can anyone help me on how to do this? Thanks for your anticipated help...
  2. A

    MATLAB Excel date column export into Matlab

    Thanks Kreil, I have succeeded in using datenum. See the code below wt=xlsread('DataTest','sheet1'); datecol = 1; wt(:,datecol) = wt(:,datecol) + datenum('30-Dec-1899'); x=wt(:,1); qo=wt(:,2); plot(x,qo); How do I use datetick to get the x (date axis) in day-month-year ('dd-mmm-yyyy') format...
  3. A

    MATLAB Excel date column export into Matlab

    Hi everybody, I need assistance. I have excel file that conntains a date column and another column. I wish to plot the date on x-axis and the second column on y axis. I wrote the MATLAB code below. This is my code. data=xlsread('DataTest','Sheet1'); q=data(:,2); time=data(:,1); Error...
  4. A

    MATLAB How to add trendline to semilog plot in matlab

    Hi, I have x and y vectors, x=[ 90868 68151 45434 34076 27261 13631 6816 3408 2273 1948 1705 1137 853 683 569 455 342 274 228 190]; y=[ 3680 3723 3800 3866 3920 4103 4250 4320 4340 4344 4350 4364 4373 4379 4384 4393 4398 4402 4405 4407]; I need to plot semilogx in MATLAB and add trendline and...
  5. A

    MATLAB Combining Plots with Different Y-Axis Ranges in Matlab?

    Thanks Pythagorean. Subplot will not work as I want all the plots to overlay on the same plot. Please advise on how to create each axes and manually place its position on the figure. Thanks adeeyo
  6. A

    MATLAB Plotting with different y-axes range in Matlab

    Good Day Everybody, Please assist me on these problems 1. I wish to put six plots on the same plot using matlab. The details of each plot are stated below PLOT 1 x axis range 0:1 y axis range 0:1 PLOT 2 x axis range 0:1 y axis range 0:1 PLOT 3 x axis range 0:1 y axis range...
  7. A

    MATLAB Combining Plots with Different Y-Axis Ranges in Matlab?

    Good Day Everybody, Please assist me on these problems 1. I wish to put six plots on the same plot using matlab. The details of each plot are stated below PLOT 1 x axis range 0:1 y axis range 0:1 PLOT 2 x axis range 0:1 y axis range 0:1 PLOT 3 x axis range 0:1 y axis range...
  8. A

    MATLAB Storing Iteration Results in Matlab

    Please assist. I am a student.
  9. A

    MATLAB Storing Iteration Results in Matlab

    Hi Simon, I have checked the code over and over again I could not figure out where I got it wrong. Please help me to check and verify the code. Thanks
  10. A

    MATLAB Storing Iteration Results in Matlab

    Hi Simon, I put Z and V inside k loop, but is giving me 80 by 4 by 4 matrix for Z instead of 5 by 4 by 4 matrix. Since my k=40:10:80; and T(k)=273.15+k; Any advice? Thanks
  11. A

    MATLAB Storing Iteration Results in Matlab

    Dear All, Please help me on this little problem. I have the code below. for k=40:10:80 T(k)=273.15+k; z=[0.2 0.2 0.2 0.4]; W_PR=0.245; C=4; omega=[0.344 0.467 0.578 0.789]; Tc=[600 700 500 570]; Pc=[50 70 58 76]; for c=1:C...
  12. A

    MATLAB Matlab function errors while using loop

    Hi, Please assist, I write this MATLAB function and receive the error below function f=myfunn(z,x,K,L1,L2,phi) for c=1:3 f=z(c)-(x(2,c).*K(c).*L1)-(x(1,c).*phi(2,c).*L2)./phi(1,c); end function f=myfunn(z,x,K,L1,L2,phi) | Error: Function definitions are not permitted in...
  13. A

    MATLAB Using multiple functions in matlab Errors

    Dear All, Please I need your assistance in solving this MATLAB problem. I will be glad to hear from you as early as possible. Thanks for your anticipated help I have three functions First one function f_PR_W=Newtonphasemolefraction1(W_PR, z,C,K_PR ) f_PR=0; for c=1:C...
  14. A

    MATLAB Errors in using multiple functions in matlab

    Hi, Please I need your assistance in solving this MATLAB problem. Thanks for your anticipated help I have three functions First one function f_PR_W=Newtonphasemolefraction1(W_PR, z,C,K_PR ) f_PR=0; for c=1:C f_PR_W=f_PR+z(c).*(1-K_PR(c))./(1+W_PR.*(K_PR(c)-1)); end...
Back
Top