Answered
Trying to use Stem() - Error message
You can use the |subs| function in the Symbolic Math Toolbox to get the numerical values of |y| and |t|. <https://www.mathworks...

7 years ago | 1

Answered
Embedding a uicontrol listbox in a uimenu?
It is possible to open a new dialog with the checkbox or listbox from the menu. You can do this by adding a callback to the "Pl...

7 years ago | 0

Answered
The transparency of patch in legend changes when the legend is updated in the plot browser in the figure. How can I stop it?
Any time the legend creates new patches, they will default to the non-transparent |FaceAlpha|. Using the syntax to return the |...

7 years ago | 1

| accepted

Answered
File Watcher for continuous running program
the post that you linked to is using this functionality in a figure, so the callbacks are used as long as the figure is running....

7 years ago | 1

| accepted

Answered
How to use vectors inside the fittype function
You can do this by supplying an anonymous function for the expression in |fittype| instead of a string. For example g = ...

7 years ago | 0

Answered
I want to plot a straight line using App designer.I am using it for the first time and here is a code snippet.But no graph appears.Can someone please help?
If you want to do the plotting when the user selects the button labeled 'U', then you should be comparing the 'selectedButton.Te...

7 years ago | 0

Answered
Why does legend command fail after boxplots with hold command?
Boxplots are groups of lines in the axes, so their legend functionality is limited. Mathworks' teams are aware of this and cons...

7 years ago | 1

Answered
How do I find the area inside a shape?
Using the Image Processing Toolbox in MATLAB, you can provide the binary image and the properties ('Area') that you would like a...

7 years ago | 0

Answered
App designer 3d in GUI - Rotate3d ?
I was able to do this using the following to control the UIAxes that I added to my AppDesigner app. rotate3d(app.UIAxes,'on...

7 years ago | 3

| accepted

Answered
what is the status of wrapToPi ?
Based on our documentation, the |wrapToPi| function belongs to the Mapping Toolbox in each release you mention above. You can...

7 years ago | 0

Answered
App Designer Multiple Plots
Hi April, You can use the |hold| command as you usually would to plot multiple graphs on an axes. You will need to call |hol...

7 years ago | 6

Answered
App Designer Tab Groups
If you want to change which tab in a group is visible, you can use: app.TabGroup.SelectedTab = app.Tab1 where |Tab1| is ...

7 years ago | 1

Answered
Finite Difference Approximation of 1st Order Error Bi-Harmonic Operator
I believe you have these implemented correctly and that both have second-order accuracy. I am not sure how you are defining |re...

7 years ago | 1

Answered
Why is not possible to put the SpecifyObjectiveGradient option to true in case of Levenberg-Marquardt?
The default algorithm for |lsqnonlin| is the trust-region-reflective method. In order to use the Levenberg-Marquardt algorithm ...

7 years ago | 1

Answered
how to write this equation for modelfun?
The way you can do this with so many predictor variables and coefficients is to vectorize the equation. Then you just have to b...

7 years ago | 0

Answered
Number of ways of distributing n distinct objects into r identical groups
Based on your description, it looks like there are two separate concepts that you are dealing with. The first is that you need t...

7 years ago | 0

Answered
Individual processing each block blockproc
You may consider writing a function that takes the " |block_struct|", analyzes its " |location|" information or " |data|" and th...

7 years ago | 0

Answered
Give focus to an Edit Field
This functionality with "uicontrol" is currently unavailable in App Designer. I have forwarded your feedback to our developers a...

7 years ago | 5

| accepted

Answered
How to find analytic expression for B-spline curve
When you are executing the command >> sp = spap2(3,4,x,y); you are computing the B-form of a spline of order 4 with 3 po...

7 years ago | 0

Answered
garchset / garchget to new functions
In order to add all of the parameters you are using, you can consider making a GJR object using the "gjr" function, and then spe...

7 years ago | 0

Answered
how can i change Pareto front axis in genetic algorithm?
I am not exactly sure how you would like to "indicate the optimal solution" using the Pareto front, but here are a few ways to v...

7 years ago | 0

| accepted

Answered
Algorithm required to detect different phases of a real time data/signal.
First, you will need to establish some criteria for what a "phase change" should be. After doing this, you can use logical inde...

7 years ago | 0

| accepted

Answered
Can someone help me out with this code, it doesn't seem to be giving the correct output. I have MATLAB 2017a and this code ran on MATLAB 2013a
I think that there are two changes that you are seeing to the Symbolic Math Toolbox here. The first is that the order of el...

7 years ago | 0

Answered
App Designer: Use a button in one .mlapp file to open a specific UItab in a different .mlapp file
Let the app with the button be called app1 and the app with the tab group be called app2. In app2, let the tab group be called T...

7 years ago | 0

Answered
How can I connect 25 nodes with 50 connections?
There are a couple of ways to do this. One way is to use |randi| to generate two integers between 1 and 25. They will act as i...

7 years ago | 0

| accepted

Answered
Plotting a result from dsolve
I am not sure what |x| is in this case, but you should be able to use <https://www.mathworks.com/help/matlab/ref/fplot.html fplo...

7 years ago | 1

| accepted

Answered
Identify Shape and Extract Vertices
As far as an algorithm that will do this, I am not really sure. I did find some MATLAB functions that could help you find the co...

7 years ago | 0

Answered
ga with population from a given set
If you are not using a |bitstring| or |custom| for the |PopulationType| in your |ga| options, then you can encode this constrain...

7 years ago | 0

| accepted