답변 있음
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년 초과 전 | 0

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

5년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 6

답변 있음
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년 초과 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 5

| 수락됨

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

5년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

더 보기