Answered
How to return result as NA rather than invalid line
How about something like this? if rows-2 > 0 && rows-2 <= nrows L2 = data(rows-2, 2); else L2 = nan; end

4 years ago | 0

Answered
Heatmap font size too small in latex
Girija - These solutions will increase the size of all of your text, but I think that's what you're looking for. Resizing a su...

4 years ago | 0

Answered
Loops with multiple conditions
I'm struggling a little to understand your goal, I've coded up what you described (as I read it), but I suspect I'm missing some...

5 years ago | 0

Answered
Multiple sum in switch case calculator
I think that what you're asking about is using the input function to gather multiple values, and then passing those values into ...

5 years ago | 1

| accepted

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

5 years 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 ...

5 years 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...

5 years 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...

5 years 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...

5 years 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...

5 years 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...

5 years ago | 1

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

5 years 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...

5 years 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 ...

5 years 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...

5 years 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 ...

5 years ago | 2

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

5 years ago | 0

| accepted