on-internet
← Community

Adding multiple function plots to a single figure with subplots in MATLAB

Stack Overflow ·

I've been trying to run a function three times that plots 2 subplots (6 plots total) onto one single figure. So I've got a function that reads in a dataset and a manipulator, then manipulates it in 2 different ways, then plots in 2 subplots - the function works as it should, I just can't seem to merge the plots when I'm running it in a separate script. Simplified function below: function function_plot(dataset,manipulator) %Manipulates Data figure; subplot(1,2,2); imagesc(data_manipulated1); subplot(1,2,1); imagesc(data_manipulated2); end Simplified script below: function_plot('data.mat',manipu

Comments

Sign in or sign up to comment and upvote.

No comments yet.