Community Profile

photo

Dave B

MathWorks

Last seen: 1 día ago Active since 2020

I am a software engineer at MathWorks. My work focuses on graphics and charting.

Statistics

All
  • MATLAB Mini Hack Participant
  • 3 Month Streak
  • Pro
  • Knowledgeable Level 4
  • Revival Level 2
  • Personal Best Downloads Level 1
  • 5-Star Galaxy Level 1
  • GitHub Submissions Level 2
  • First Submission
  • First Answer

View badges

Content Feed

View by

Answered
Please help, i have the idea of what I'm wanting to find but do not know how to actually code this!
How about something like this: % You might consider readmatrix or readtable instead of load... % But load works for such simpl...

alrededor de 16 horas ago | 1

Answered
Help creating xbar control chart
You specified x as a vector, but controlchart doesn't accept x as a vector. controlchart is going to use means and limits, and i...

alrededor de 22 horas ago | 0

Answered
Plot multiple tables from workspace using for loop
If you want to reference the tables as you describe, you'd need them in an array (in C, or in MATLAB): t1=table((1:10)',rand(10...

alrededor de 23 horas ago | 0

Answered
Parse error at "t"
When you multiply in MATLAB you need a * symbol r = -10*e-1.8t; should be r = -10*e-1.8*t;

1 día ago | 1

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

1 día ago | 0

| accepted

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

1 día ago | 0

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

1 día ago | 2

| accepted

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

1 día ago | 0

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

1 día ago | 0

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

1 día ago | 0

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

2 días ago | 1

| accepted

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

6 días ago | 0

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

9 días ago | 0

| accepted

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

9 días ago | 0

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

9 días ago | 0

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

10 días ago | 1

| accepted

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

10 días ago | 3

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

11 días ago | 1

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

11 días ago | 1

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

11 días ago | 0

| accepted

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

12 días ago | 0

| accepted

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

12 días ago | 1

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

13 días ago | 0

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

13 días ago | 0

| accepted

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

13 días ago | 0

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

13 días ago | 0

| accepted

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

13 días ago | 0

| accepted

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

14 días ago | 0

| accepted

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

15 días ago | 0

| accepted

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

15 días ago | 0

Load more