Respondida
TabGroup: How to execute code before selection changed?
I'm curious, why do you need the code to run before switching tabs? I don't believe this is possible without basically implemen...

alrededor de 4 años hace | 0

| aceptada

Respondida
Workflow Matlab with Git
Welcome to the world of version control. Git is an amazing and powerful tool, but it can take some getting used to. I would sug...

alrededor de 4 años hace | 1

| aceptada

Respondida
Brushing when plotting a 2D Matrix with linkdata: brushes whole row of matrix instead of single data points.
The reason for the behavior you are seeing is because when you enable data linking (via linkdata) and then select data points, y...

alrededor de 4 años hace | 0

Respondida
i have a loop that generates an image everytime how can I save the figures?
I can't see any obvious bugs in your code. As written, it should save a copy of all figures that you opened in your loop. Are yo...

alrededor de 4 años hace | 1

Respondida
Issues with CurrentPoint in R2021b
We've seen issues in the past with CurrentPoint being slightly off, and we are investigating them. Can you provide a little more...

alrededor de 4 años hace | 1

Respondida
calling subfunctions with handle
You can call a function from a function handle by appending parentheses to the end of the variable name, even if there are no in...

alrededor de 4 años hace | 1

Respondida
Generate an indexed image
Are you trying to create an indexed image in MATLAB? Or are you asking what programs (aside from MATLAB) can be used to create i...

alrededor de 4 años hace | 0

Respondida
Can I index a matrix on the same line it's created?
When I first read your question, I assumed this was not an acceptable answer: clc, clear all; coordinates = [6,2;-4,8;-5,-1;3,-...

alrededor de 4 años hace | 1

| aceptada

Respondida
Wait until user press return key to continue script
Another option is to use waitfor along with a WindowKeyPressFcn. x = rand(1,41); y = 1:41; H(1)= plot(x,y,'r.'); H(2)= line(...

alrededor de 4 años hace | 1

| aceptada

Respondida
Wait until user press return key to continue script
One option is to add a WindowKeyPressFcn that runs the rest of your code. Something like this: x = rand(1,41); y = 1:41; H(1)...

alrededor de 4 años hace | 1

Respondida
I have a contourf function constituted by x, y and z vectors (It is a large matrix). Then, I would like to find the x, y and z values corresponding to certain x and y vectors.
I'm not sure I completely understand your question, but I think you are misusing meshgrid in your code example above. Does this...

alrededor de 4 años hace | 0

| aceptada

Respondida
Adjusting figure size (2019b)
On axes the OuterPosition and InnerPosition (which is equivalent to Position) are linked to one another. The difference between ...

alrededor de 4 años hace | 1

Respondida
how can I custom a mask matrix by giving black color to values equal 1 and transparency to NaN values?
I'm not 100% sure what you are asking, but if I understand your question correctly I don't think what you are asking can be done...

alrededor de 4 años hace | 0

| aceptada

Respondida
Histogram with two axes
If I understand correctly, you want two y-axes: one with the real numbers and another with relative values. There is no built-i...

alrededor de 4 años hace | 0

| aceptada

Respondida
I want to draw 2 moving points in a graph. Please help with the easiest code as I m just a beginner.I tried with x(i), y(i) but only 1 moving point I could get. Please help
There are a few mistakes you are making in your script. You are calling hold on then following it with clf. clf is going to cle...

alrededor de 4 años hace | 0

| aceptada

Respondida
How can I plot earth_sphere(varargin) correctly in an Matlab app tab
Two things you can try: Set the NextPlot property on the UIAxes to 'replace' before calling earth_sphere (app.UIAxes5 = 'replac...

alrededor de 4 años hace | 0

Respondida
Bug in R2021a with current Point of UIAxes
The CurrentPoint property on UIAxes will always reflect the last click detected anywhere in the figure. That is how CurrentPoint...

alrededor de 4 años hace | 0

| aceptada

Respondida
Changing colour of plotted shape when the mouse hovers it?
Here is a much more complicated version that I think does what you wanted (although I'm not sure). This version figures out whi...

alrededor de 4 años hace | 0

Respondida
Changing colour of plotted shape when the mouse hovers it?
You cannot change the color of a single side of a polygon object, so I think your only option is to overlay a line over the side...

alrededor de 4 años hace | 0

| aceptada

Respondida
Playing with matrix and putting in number values
There seems to be a few things missing from your description, such as where the number 12 comes from, and how you want to handle...

más de 4 años hace | 1

| aceptada

Respondida
stock plots, errorbars in a growing variable.
I'm not sure I completely follow your question, but I think you are asking about using handles to graphics objects. For example,...

más de 4 años hace | 1

| aceptada

Enviada


Venn Euler Diagram
Create a Venn/Euler diagram for sets which can be area-proportional.

más de 4 años hace | 7 descargas |

0.0 / 5
Thumbnail

Enviada


Confidence Interval Plot
Creates a chart with a mean line within a shaded confidence interval area.

más de 4 años hace | 2 descargas |

0.0 / 5
Thumbnail

Respondida
Reorganize table and make groups of rows to columns
The command you are looking for is called unstack. For example: newtbl = unstack(origtbl,'Return','Permno')

más de 4 años hace | 1

Respondida
I want to draw a circle on the image in MATLAB. Please help me how to draw it.
You can draw circles in MATLAB using the rectangle command and setting the Curvature to [1 1]. (I know, it is a little strange t...

más de 4 años hace | 0

Respondida
Readtable / writematrix / Excel file - how to control the format of variables in the table ?
The readtable command takes an optional options input which can be used to control how the XLS file is imported. T = readtable(...

más de 4 años hace | 0

Respondida
Assignment has more non-singleton rhs dimensions than non-singleton subscripts
The output from regionprops is a struct array (meaning, there may be more than one region, so the struct array may have multiple...

más de 4 años hace | 0

Respondida
Color-Coded Bar Graph
I suspect the issue you are having is because you are attempting to compare against a character vector incorrectly. What format...

más de 4 años hace | 0

| aceptada

Respondida
How do I change my code to stop a for loop simply replacing rows of outputs in a uitable?
The code as it is currently written is creating a brand-new uitable every time the loop runs. You need to update the code to ei...

más de 4 años hace | 0

Respondida
How to plot live data from Arduino UNO to App designer.
At a very high level: Create a new app in App Designer. See the tutorials linked below for how to get started. Add at least a ...

más de 4 años hace | 1

| aceptada

Cargar más