Answered
How do I make an app that opens another app that displays the current date and time
When you say "app", are you talking about App Designer? Regardless, most apps (either programmatic or created with App Designer...

meer dan 2 jaar ago | 0

Answered
Determine the (pixel) width of a string
The only way I know of to do that in MATLAB is using the Extent property on text objects. The third element is the width, the fo...

meer dan 2 jaar ago | 0

| accepted

Answered
name value pairs with variable input arguments
The problem is: ~ischar(varargin(1:2:nargin)) The varargin input will always be a cell-array, so this condition will never be ...

meer dan 2 jaar ago | 0

Answered
How to create a %of time vs %of area plot
There are a lot of missing details from your question that would need to be filled-in before someone can provide a good answer. ...

meer dan 2 jaar ago | 0

| accepted

Answered
Make a 3D plot over a circle
There are tons of options for doing this in MATLAB. Here are a few: % First define some constants and your input data (as I und...

meer dan 2 jaar ago | 1

| accepted

Answered
Break while loop app designer
Consider this example (you should be able to use this same pattern within App Designer with only a little tweaking): function s...

meer dan 2 jaar ago | 0

Answered
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...

meer dan 2 jaar ago | 0

| accepted

Answered
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...

meer dan 2 jaar ago | 1

| accepted

Answered
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...

bijna 3 jaar ago | 0

Answered
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...

bijna 3 jaar ago | 1

Answered
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...

bijna 3 jaar ago | 1

Answered
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...

bijna 3 jaar ago | 1

Answered
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...

bijna 3 jaar ago | 0

Answered
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,-...

bijna 3 jaar ago | 1

| accepted

Answered
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(...

bijna 3 jaar ago | 1

| accepted

Answered
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)...

bijna 3 jaar ago | 1

Answered
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...

bijna 3 jaar ago | 0

| accepted

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

bijna 3 jaar ago | 1

Answered
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...

bijna 3 jaar ago | 0

| accepted

Answered
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...

bijna 3 jaar ago | 0

| accepted

Answered
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...

bijna 3 jaar ago | 0

| accepted

Answered
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...

bijna 3 jaar ago | 0

Answered
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...

bijna 3 jaar ago | 0

| accepted

Answered
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...

bijna 3 jaar ago | 0

Answered
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...

bijna 3 jaar ago | 0

| accepted

Submitted


Thermometer Chart
Create a thermometer style chart with a stem, bulb, and desired labels.

bijna 3 jaar ago | 2 downloads |

Thumbnail

Submitted


Spike Raster Plot
A spike raster plot from spike time stamps with optional trial and group data.

bijna 3 jaar ago | 22 downloads |

Thumbnail

Answered
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...

ongeveer 3 jaar ago | 1

| accepted

Answered
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,...

ongeveer 3 jaar ago | 1

| accepted

Submitted


Sparklines Component
Create small graphs which show the general trend of data.

ongeveer 3 jaar ago | 3 downloads |

Thumbnail

Load more