Community Profile

photo

Dave B


Last seen: Today

MathWorks

13 total contributions since 2020

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

Contact

Dave B's Badges

  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
View by

Answered
How to fade out the edges of random spheres?
Starting in R2020b you can set the alpha independently when using scatter, so I used scatter for a large sphere. If 2020b isn'...

18 days ago | 0

Answered
How to average seconds data to minutes data?
It sounds like you want to use the first column of your CSV which has times, and for each minute extract compute the average of ...

3 months ago | 1

Answered
Rotating rows until they align with a row above in a matrix
It sounds like you want to apply circshift to each row of a matrix, for all of the possible shifts (the width of the matrix), an...

3 months ago | 0

| accepted

Answered
How to sum an array over time
Hi Vezzaz: It sounds like the function you're looking for is cumsum, you don't need a loop! x = 1:5; y = [1 4 9 12 13]; yc...

3 months ago | 1

| accepted

Answered
How To Avoid Triggering Property Setter Method
Hi Thomas - This is an interesting problem. If I understand correctly, you need to have the property set because you have some...

3 months ago | 0

| accepted

Answered
Sampling images without replacement
Hi Pamela: It looks like you're calling randperm for each iteration of your loop, but I think you just want to call randperm on...

3 months ago | 0

Answered
How to use For Loop to plot multiple graphs?
Neilton: It sounds like you want to call plot on several variables (your table names), and those names vary in a systematic way...

3 months ago | 0

Answered
How to add rank based on another column for tie breaker?
Hi Yean - I'm not sure I understand the problem, but here's my take. It looks like you're expecting rank to match factor in th...

3 months ago | 0

| accepted

Answered
Conditional Colormap and colorbar for scatter plot.
Hi Sean - I think what you're describing in your diagram is: Values between -100 and -5.1 range from black to light gray. Val...

3 months ago | 0

| accepted

Answered
How can we replacing the pixel values of RGB image under bounding box with some random pixel values?
Hi Sami: It sounds like you want to set the RGB pixel value for the values in the bounding boxes. You can extract the rows and ...

3 months ago | 0

| accepted

Answered
Cheating with subplots, AutoResizeChildren
Hi Ted: Yes, this is a neat workaround, but it does indeed cause a problem. You can think of the subplot function as doing tw...

3 months ago | 0

| accepted

Answered
Converting Struct Element Data Type
Hi SRance To list the fields for a struct, you can use the fieldnames function which you can see in that big line of code. I ...

3 months ago | 1

Answered
inheriting property and changing access
Hi Nathan - The property can only be defined in one place (i.e. the superclass). It sounds like you want TA_Component to have ...

3 months ago | 0

| accepted