how to make a plot with three variables, one as a vector, in Matlab app designer?
Show older comments
Hi
I have some data, some arrays with name temperature, activity and then I have two arrrays named weight percent best_salt_1 and weight percent best_salt_2 that I will combine into a vector or to an array with one row and two columns for each set of values . And then I want to plot the data to visualise the information. But I dont have the newest version of Matlab , dont want to upgrade my version either. Hence I cant use the gscatter function that can make it possible to visualize all the info I want in my plot.
Then my question if whether I can use a trick like splitapply so everything I want to visualise here is possible..?
7 Comments
Matt J
on 23 Mar 2026
gscatter has been around since R2006. It is hard to imagine your Matlab version is older than that.
dpb
on 23 Mar 2026
It is in the Statistics TB and not base MATLAB, however.
@Muazma Ali - provide some more specifics on just what the data sizes are and which is to be plotted against which.
But, certainly if you create or have a gouping variable, the splitapply workflow could be used to create the desired plot. But, so could simply plotting the various pieces separately using hold on
Cris LaPierre
on 24 Mar 2026
Edited: Cris LaPierre
on 3 Apr 2026
I'd think some of the 3D visualizations would work if you size the data appropriately. A function like meshgrid could help with that.
Muazma Ali
on 3 Apr 2026
Cris LaPierre
on 3 Apr 2026
Consider sharing some sample data we can use to try some things out. Also, run the command ver and share the output with us.
It sounds like you want to create a 2D plot of Activity vs temperature, and have the markers be unique by group.
You've defined 3 grouping variables: Weight percent best salt 1 & 2, and combination_of_salts. You can use findgroups or groupsummary to create a variable identifying what gorup each row belongs to.
Muazma Ali
on 3 Apr 2026
Answers (0)
Categories
Find more on Tables in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!