Can I use splitapply with two grouping variables and how can it be done in matlab app designer?
Hi ! 🙂
I am referring to this example:
load carsmall
whos
Name Size Bytes Class Attributes
Acceleration 100×1 800 double
Cylinders 100×1 800 double
Displacement 100×1 800 double
Horsepower 100×1 800 double
MPG 100×1 800 double
Mfg 100×13 2600 char
Model 100×33 6600 char
Model_Year 100×1 800 double
Origin 100×7 1400 char
Weight 100×1 800 double
cmdout 1×33 66 char
[g,id]=findgroups(Model_Year);
hAx=axes; hold(hAx,’on’)
splitapply(@(x,y)scatter(x,y,’filled’),Displacement,Horsepower,g)
legend(hAx,"Model Year "+string(1900+id),’location’,’northwest’)
xlabel(‘Displacement’), ylabel(‘Horsepower’)
——————————–
I have a table which is heterogenous. And I want to show the names of the first preferred salt user has chosen and second preferred salt (these are two of the column in my table) along with their properties on the x and y axis. Their properties are also the different columns in my tableHi ! 🙂
I am referring to this example:
load carsmall
whos
Name Size Bytes Class Attributes
Acceleration 100×1 800 double
Cylinders 100×1 800 double
Displacement 100×1 800 double
Horsepower 100×1 800 double
MPG 100×1 800 double
Mfg 100×13 2600 char
Model 100×33 6600 char
Model_Year 100×1 800 double
Origin 100×7 1400 char
Weight 100×1 800 double
cmdout 1×33 66 char
[g,id]=findgroups(Model_Year);
hAx=axes; hold(hAx,’on’)
splitapply(@(x,y)scatter(x,y,’filled’),Displacement,Horsepower,g)
legend(hAx,"Model Year "+string(1900+id),’location’,’northwest’)
xlabel(‘Displacement’), ylabel(‘Horsepower’)
——————————–
I have a table which is heterogenous. And I want to show the names of the first preferred salt user has chosen and second preferred salt (these are two of the column in my table) along with their properties on the x and y axis. Their properties are also the different columns in my table Hi ! 🙂
I am referring to this example:
load carsmall
whos
Name Size Bytes Class Attributes
Acceleration 100×1 800 double
Cylinders 100×1 800 double
Displacement 100×1 800 double
Horsepower 100×1 800 double
MPG 100×1 800 double
Mfg 100×13 2600 char
Model 100×33 6600 char
Model_Year 100×1 800 double
Origin 100×7 1400 char
Weight 100×1 800 double
cmdout 1×33 66 char
[g,id]=findgroups(Model_Year);
hAx=axes; hold(hAx,’on’)
splitapply(@(x,y)scatter(x,y,’filled’),Displacement,Horsepower,g)
legend(hAx,"Model Year "+string(1900+id),’location’,’northwest’)
xlabel(‘Displacement’), ylabel(‘Horsepower’)
——————————–
I have a table which is heterogenous. And I want to show the names of the first preferred salt user has chosen and second preferred salt (these are two of the column in my table) along with their properties on the x and y axis. Their properties are also the different columns in my table matlab app designer, split apply, two grouping variables MATLAB Answers — New Questions
​