How to curvefit data from a csv file?
37 views (last 30 days)
Saurabh Kumar on 18 Jun 2020
You can import data from csv file using readmatrix into a matrix form in MATLAB. Select the column from the matrix and use cftool app to generate the curve as shown below.
data =readmatrix('covid.csv'); %assuming csv file name to be 'covid.csv'
date=data(:2); %assuming date is present in second column
confirmed=data(:5); %assuming confirmed is present in 5th column
Thanks and Regards,