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

6 mesi 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...

6 mesi 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 ...

6 mesi 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...

6 mesi 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...

6 mesi 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...

6 mesi 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...

6 mesi 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...

6 mesi 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...

6 mesi 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...

6 mesi ago | 0

| accepted

Submitted


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

6 mesi ago | 4 downloads |

Thumbnail

Submitted


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

6 mesi ago | 33 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...

8 mesi 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,...

8 mesi ago | 1

| accepted

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

10 mesi ago | 1

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

10 mesi ago | 0

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

10 mesi ago | 0

Submitted


Color Trajectory Plot
A multi-color line based on a 2D trajectory with corresponding color data.

11 mesi ago | 6 downloads |

Thumbnail

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

11 mesi ago | 0

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

11 mesi ago | 0

| accepted

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

12 mesi ago | 0

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

12 mesi ago | 1

| accepted

Answered
Getting the value of variable from its name
eval will do this, but see the link posted by Stephen explaining all the reasons you should avoid using eval: https://www.mathwo...

12 mesi ago | 1

Answered
error: Out of memory. The likely cause is an infinite recursion within the program.
As this looks like a homework assignment, I'm not going to provide the direct answer to how to do this in MATLAB. However, I can...

12 mesi ago | 0

Answered
How to save obtained information from matlab in Excel
See if this doc page helps: Write Data to Excel Spreadsheets

12 mesi ago | 0

| accepted

Answered
Assign a table coloumn a particular data type
You cannot mix data types within a double matrix, but you can mix data types within a table. So, you cannot convert two columns...

12 mesi ago | 1

| accepted

Answered
Adding titles squashes one of my images in a TiledChartLayout (R2020a)
I opened the figure you created, and I see you have set the GridSize to [2756 3840]. TiledChartLayout is attempting to keep eac...

circa un anno ago | 1

| accepted

Answered
Drawing upside down cone using spherical coordinates.
The issue you are facing is that when you call meshgrid you are specifying three input vectors, so the output matrices are going...

circa un anno ago | 1

| accepted

Answered
Boxplot for both x and y axis with different box widths.
The boxplot command creates a group of lines, so if you wanted to adjust the box widths you would need to manually adjust the XD...

circa un anno ago | 0

| accepted

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

circa un anno ago

Load more