Answered
How to plot two plots in one graph?
hold on Place it just before the i-loop figure() hold on for i = 1:Year ... end hold off % optional

5 years ago | 0

Answered
how to format a graph so that data point varies if..............
scatter(x,y,[],z)

5 years ago | 0

Answered
Using data from table in calculations
Have you tried a simple loop like this? % Function returns a scalar value and stores it in a vector. % Function contains 3 in...

5 years ago | 0

Answered
Why is Text Vertically Misaligned when I use a Custom Font?
It seems that this particular font has caused vertical alignment issues in other systems as well. A user in the Figma forum ha...

5 years ago | 2

| accepted

Answered
How to change the color of different parts of regression plots using fitlm function?
plot(mdl) returns a plot of the fitml model and includes a legend that shows the names of each object. The most robust way edi...

5 years ago | 6

Answered
Change interval of color bar in contour scatter plot ?
> How can I change the color bar range for this code. I would like to have some how like Levels of [1:2:10] This question is un...

5 years ago | 2

| accepted

Answered
Display a degree heading as a compass heading rather than a absolute heading from the origin.
See wrapTo360() from the Mapping Toolbox. Otherwise, Use mod() to wrap a value to [0,360] rather than rem() theta = 758; w...

5 years ago | 0

| accepted

Answered
Passing Data between Apps in app designer - Table Data in app1 plotted in app2
Attached are two very simple apps to demonstrate multiwindow apps in AppDesigner. After downloading both files, add the folder...

5 years ago | 5

| accepted

Answered
Colormapeditor() for UIAxes in App Designer?
Set the UIFigure's HandleVisibility to ON prior to initializing colormapeditor. Then turn HandleVisibility back off afterwards....

5 years ago | 0

| accepted

Answered
applying fill colors to a grid based on threshold value?
I understand that you want to create a contour map with two levels of color to show values above and below a threshold within a ...

5 years ago | 1

| accepted

Answered
Signifcant numbers set in a table
This example shows how to permanently round the data to 2dp which is usually undesirable but if you're printing it to a report, ...

5 years ago | 2

| accepted

Answered
plot by skipping some points
Several methods to plot a subset of values within an array. Indexing. If you want to eliminate a list of (x,y) values, use fu...

5 years ago | 2

| accepted

Answered
Add dots at peak of bars in a bar graph and draw a line between them?
Working with categorical axis rulers is tricky because you can't use simple arithmetic to get the bar centers. The demo below c...

5 years ago | 1

| accepted

Answered
identify and delete columns from a MATALB table
>The names of these columns are already defined in a Variable called "SampleNames". By 'column names' I assume you mean what M...

5 years ago | 1

| accepted

Answered
How can I keep asking the user for correct input even after they press enter?
Most of the time case sensitivity shouldn't be a constraint in these types of queries. The demo below accepts any form of "read...

5 years ago | 1

| accepted

Answered
How can I show all the plotted lines in the legend?
I've cleaned up your code (see inline comments). You have to supply the legend with handles that specify what belongs in the l...

5 years ago | 1

| accepted

Answered
How do I remove an element from cell based on the size of the array within the cell
You can use cellfun with numel to eliminate cells with only 1 element. Assuming ClusterCell is a cell array, ClusterCell(ce...

5 years ago | 0

Answered
Label 3D axes on multiple sides
Unfortunately you can only label one side of each axis using the xlabel, ylabel, zlabel functions. A common workaround in Matl...

5 years ago | 1

| accepted

Answered
Clear Properties in App Designer
> I need to ''clear'' the value of this Property so that I do not have influence of previous values in the callback I'm current...

5 years ago | 0

| accepted

Answered
Order columns of matrix based on other matrix
Secret ingredient: sub2ind A = [3 1 3 1 3 2 2 2 2 1 1 3 1 3 2 ]; ...

5 years ago | 1

Answered
How to profile calls in a for loop?
I'd start with a simple tic/toc time of each iteration and plot out the results to see if the increase happens at a specific ite...

5 years ago | 0

Answered
How to plot already binned data
heatmap plots are difficult to customize which is why I recommend using imagesc or histogram2. This expample below uses histog...

5 years ago | 1

| accepted

Answered
Curve fitting one portion of the data
The goal is to remove the linear part so you need to find when the linear part ends and the curvilinear part begins. There are ...

5 years ago | 1

| accepted

Answered
Polarhistogram changing rlim creates blue circle
rlim() is behaving as expected. The reason you're seeing the additional blue historgrams is because unlike ylim in Cartesian ...

5 years ago | 2

| accepted

Answered
Plot not showing any data
The solution involves matlab indexing which is a very basic skill to know before making much progress. This should get you sta...

5 years ago | 1

| accepted

Answered
dragging a selected point within uiaxes
HandleVisibility is set to off by default with uifigures and this prevents gcf/gca/gco from accessing the figure handle or anyth...

5 years ago | 0

| accepted

Answered
Cant join 2 tables with same headers. vertcat error
The error is because of a difference in character length of the two "name" fields. Vertical concatenation of characters into a ...

5 years ago | 1

Answered
Using pause() and readframe() - the pause is not affecting the output
getframe and writeVideo merely store images as frames of a movie which does not affect playback speed. Follow Walter Roberson...

5 years ago | 0

| accepted

Answered
Appdesigner create loop for drop down Items
See inline comments for instructions Option 1) Switch case A = [app.ColourDropDown_1 app.ColourDropDown_2 app.ColourDropDown_3...

5 years ago | 0

| accepted

Answered
How to write Latex in GUI's label?
From the startup function of your app, set the Edit Field Label's interpreter property to latex. You may need to reassign the s...

5 years ago | 0

Load more