I am using following code to generate pie charts:
myDir = uigetdir;
for d = 1:length(Dataset)
baseFileName = (strcat('Figure', num2str(d),'.jpg'));
fullFileName = fullfile(myDir, baseFileName);
I am incurring following error:
Error using imwrite (line 420)
Expected DATA to be one of these types:
Instead its type was matlab.graphics.primitive.Data.
Error in graphs (line 37)
Note: Except imwrite code, pie charts are generated.
Any help would be appreciated :-)
Waqar Ali Memon