photo

Tony


Last seen: 1 day ago Active since 2024

Followers: 1   Following: 0

Statistics

  • 3 Month Streak
  • First Answer

View badges

Feeds

View by

Answered
How can I make a combination/permutation of all possible values with a given subset of data?
Below is example code for running through all combinations of a simpler problem of just 9 regions (A1:A3, B1:B2, C1, D1:D3). You...

4 months ago | 1

Answered
How do I create surface between curves of differing amounts of data points
One method is to expand to use the union of reference data points, and then apply the two functions to the union reference x1=l...

5 months ago | 1

Answered
Tiledlayout: Make Plots of unequal width
If your sizing is small integer ratios, then you can control the size of the group of tiles the individual plots span plot_span...

5 months ago | 0

Answered
Average Calculation and Array in For Loop
In the first iteration, it's attempting to calculate the average of the "0th" minute, through the first two lines in the else bl...

6 months ago | 0

Answered
Optimize loop to reduce run time
Since the calculations of the inner-most loop are independent among its iterations, you can parallelize the computations (run mu...

6 months ago | 0

Answered
add / interpolate arrays of different length
Here's one way to do it by piece-wise integration by checking which interval you are. tsol = linspace(0,1,9); ysol = sin(tso...

6 months ago | 0

Answered
Set marker alpha transparency based on point density for scatter plot
Not sure about changing marker transparency, but an indirect way is to change the 'lightness' of the marker color c_max = [0 0 ...

7 months ago | 0

Answered
Error with the animation of the surface plot
eff is three-dimensional, but the argument in surf must be two-dimensional. If you fix eff for a specific flux, that should work...

7 months ago | 0

Answered
How do I utilize a function with multiple outputs within another function?
A workaround is to avoid the sort function and calculate the ranks yourself by counting how many elements in the array are <= ea...

7 months ago | 0

Answered
I have 2 graphs , on the Y axis I have Acceleration in graph. 1 and Speed in graph 2. And on the X axis for both I have Period (Seconds). How can I create a third chart?
If you want to make three graphs in one window, try subplots. figure(1); subplot(1,3,1); plot([0 1], [0 1]); title('Accelera...

7 months ago | 1

Answered
How to store the name of a variable as a string variable?
Structures are one way of having dynamic variable names that you can refer using strings. Not sure if you can rename an existing...

7 months ago | 0