Hey everyone,
I attached the image and cell array and below is the code I use. When I use matlabs PLOTS tab and select the data it plots normally but I am not sure what is going on here. I do not have any INF or NaN values in the data:
inpdata = Turbineoutput_0813;inpdata(cellfun(@(x) isnan(x), inpdata(:,7)),:)=[];date = datenum(inpdata(:,1),'mm/dd/yyyy');turb1out = cell2mat(inpdata(:,3));turb2out = cell2mat(inpdata(:,4));turb3out = cell2mat(inpdata(:,5));turb4out = cell2mat(inpdata(:,6));turb5out = cell2mat(inpdata(:,7));figure;plot(date,turb1out,'-k');hold onplot(date,turb2out,'--r');hold onplot(date,turb3out,'--b')hold onplot(date,turb4out,'--g');hold onplot(date,turb5out,'--c');datetick('x','mm/yyyy','keeplimits');ylabel('Daily turbine power output (kWh)');
I have made the code more detailed as I want to figure this out first and cannot find anything online about it.
Best Answer