Respondida
How to do the check box in GUI app designer ??
You should not use global, roi should probably be a property on your app. But I think to prevent it from being deleted, you nee...

alrededor de 1 año hace | 0

| aceptada

Respondida
How can I insert a bunch of 6x6 matrices into a larger 30x30 matrix?
I think you're saying: you have an existing 30x30 matrix and some existing 6x6 matrices, and you want to put the values from one...

alrededor de 1 año hace | 0

Respondida
Plotting polarplot with 2 months in each from a 12 month dataset
You didn't say much about what's going wrong, but one thing I noticed is that your hold on statements are in the wrong spot. You...

alrededor de 1 año hace | 2

| aceptada

Respondida
Finding the indexes of values of one vector to another Matlab
What you described here is the second output of sort: a = [13.8487, 20.8059, 23.5011, 23.2286, 22.2261]; [sorted_a,com...

alrededor de 1 año hace | 0

Respondida
Repeating elements of an array
There are two really useful repeat functions: repmat and repelem repelem is good for repeating an element n times, so I think...

alrededor de 1 año hace | 0

Respondida
hist error: Input arguments must be numeric, but all my input is numeric?
From your description it sounds like when you called readtable, it read the values as strings rather than numbers. When you call...

alrededor de 1 año hace | 0

Respondida
Help normalizing data in table
When you want to work with multiple variables in a table at once, you have to use { } (this is because tables work with heteroge...

alrededor de 1 año hace | 2

| aceptada

Respondida
spectrogram - auto settings for zlim are too wide
I'd guess that the color limits (i.e. CLim not ZLim) are tightly fitting the data, but you have a pixel or two that is making it...

alrededor de 1 año hace | 0

Respondida
How to plot Histogram/bar graph for two data sets!!
I think there are a few ways to interpret your question. Do you mean you want to show two bar charts describing the histogram ...

alrededor de 1 año hace | 0

| aceptada

Respondida
Using multiple functions on a variable in a table
How about just initializing the new table variable first (e.g. with NaN values) and then populating it using your indices? T ...

alrededor de 1 año hace | 0

Respondida
How to create a standalone executable file?
You can create standalone executables using MATLAB compiler. A product information page is here: https://www.mathworks.com/pro...

alrededor de 1 año hace | 0

Respondida
3D surface plot
You can interpolate using a scatteredInterpolant to make a matrix over the range of X and Y and then use surf to draw it, but I ...

alrededor de 1 año hace | 1

| aceptada

Respondida
Splitting an array by the value
You can do this really easily with groupsummary x=[9 9 6 4 4 7 9 9 9 9 9 9 9 7 7 5 7 7 9 9 9 9 9]; y=[95.4508 85.2212 97.6083 ...

alrededor de 1 año hace | 3

Respondida
How do I deidentify geoplot data?
You can turn off the Tick marks with the TickDir property on the GeographicAxes: geoplot(42+rand(10,1), -71+rand(10,1)) ax=gca...

alrededor de 1 año hace | 1

Respondida
How to bin polar coordinates
The way you've written the code, the number of outputs in yBinned depends on how many of the bins of X were populated. edges = ...

alrededor de 1 año hace | 1

Respondida
Using readtable to import a 5x1 column from Excel is missing one element. Why??
readtable detected the first value as a variable name Just add 'ReadVariableNames', false to your call to readtable (if you don...

alrededor de 1 año hace | 0

| aceptada

Respondida
How can I add x and y ticks to my imagesc graph?
When you use image (or imagesc), the values in the matrix are distributed evenly. Changing the ticks just changes what's labels....

alrededor de 1 año hace | 0

| aceptada

Respondida
Create closed curve from intersection between multiple curves
polyshape is pretty good for this, but you need to give it polygons not curves (i.e. define what's inside and what's outside). N...

alrededor de 1 año hace | 2

| aceptada

Respondida
Conditionally replace numerical Array with Strings
This is happening because old_array is an array of doubles, you can't have a mix of strings and doubles in a regular (i.e. not c...

alrededor de 1 año hace | 0

Respondida
cut of zeros from a matrix based on the longest non-zero row
Another way to phrase this question is to say you want to remove columns from the right side of the matrix if the whole column i...

alrededor de 1 año hace | 0

| aceptada

Respondida
RGB to Grayscale without using rgb2gray
You can choose many approaches for converting to grayscale. For instance you could weight the three colors equally: im=imread('...

alrededor de 1 año hace | 0

Respondida
Use of 2D colormaps possible in Matlab?
There's nothing (that I know of) that provides this as a built-in utility in MATLAB, but it's pretty easy to do this kind of thi...

alrededor de 1 año hace | 0

| aceptada

Respondida
How to find correlations of corresponding rows of two arrays?
The correlations of columns are the diagonal of the correlation matrix, so you can Transpose your matrices on the way in to co...

alrededor de 1 año hace | 0

| aceptada

Respondida
How to add 3 x-axies onto a double subplot?
You can sort of fake this kind of thing with TiledChartLayout. The layout will keep your axes lined up. Starting simple, with...

alrededor de 1 año hace | 0

| aceptada

Respondida
Quiver plot appears upside down.
Images are normally shown in what's called ij coordinates, meaning (in the all positive number case) the top left corner is 0,0,...

alrededor de 1 año hace | 0

| aceptada

Respondida
y-axis are still inverted despite using fftshift
Your code doesn't run and you didn't include an image, but in general, when you call imagesc it will plot in ij coordinates, mea...

alrededor de 1 año hace | 0

Respondida
Set default value for axes LabelFontSizeMultiplier
The pattern is the same, or maybe I misunderstand the question? When you get defaults from groot, it won't show all defaults a...

alrededor de 1 año hace | 0

| aceptada

Respondida
How to write a code in Matlab having two conditions?
In MATLAB indices start with 1: n=2048; %samples fs=1024; %sampling frequency T=1/fs; t = (0:n-1)*T; F=zeros(length(t)); ...

alrededor de 1 año hace | 0

| aceptada

Respondida
Invalid use of operator while trying to plot surface
A few issues: There's no .- in MATLAB, you use the dot to indicate you want a element-wise operation instead of a matrix operat...

alrededor de 1 año hace | 0

| aceptada

Respondida
Is it possible to give an categorical date set values so it can be used for a plot.
Note that you can plot categorical variables in a variety of ways. Passing your categoricals directly into your plotting functio...

alrededor de 1 año hace | 0

| aceptada

Cargar más