I have a cell array of variable names that I want to plot. For example,
var = {...
'Xp_1';
'Xp_2';
'Xp_3';
'PRES_1';
'PRES_2';
'PRES_3';
'FLOW_1';
'FLOW_2';
'FLOW_3'};
Now, I want to group them by their names, that is, all Xps, PRESs, and FLOWs, and over-plot them on separate figure; thus, the total number of three figures: one for Xps, one for PRESs, and one for FLOWs.
I was brainstorming to do so by comparing the first two or three characters of all the variables.
How can I do this?