Community Profile

photo

the cyclist


3,963 total contributions since 2011

Data scientist at Cohen Veterans Bioscience; Obsessive runner. Professional Interests: Predictive modeling, statistics. (I don't respond to email via author page, but will usually look at a question if you send me a link to it.)

Contact

the cyclist's Badges

  • Scavenger Finisher
  • Thankful Level 4
  • 36 Month Streak
  • Ace
  • Likeable
  • Famous
  • Quiz Master
  • First Review
  • First Submission
  • Revival Level 3
  • Knowledgeable Level 4
  • First Answer
  • Puzzler
  • Speed Demon
  • Creator

View all

Contributions in
View by

Answered
If I develop a function faster than Matlab built-in function...
First, I would submit it to the File Exchange. Then, I guess you could contact support, using the little icon of the telephone ...

4 hours ago | 0

Answered
Plotting planets in MATLAB
You have given very little detail about how your data are stored. There are a few possible ways, depending on that. % Pretend d...

5 hours ago | 0

Answered
Display Markers At Specific Data Points
The marker indices functionality was introduced in version R2106b. If you have an older version, then you'll get an error. You ...

5 hours ago | 1

Answered
Return rank value of a row
Here is another solution: [~,rank] = ismember(Sscore,sort(Sscore,'desc'));

7 hours ago | 1

Answered
Return rank value of a row
[~,idx] = sort(Sscore,'desc'); [~,rank]= sort(idx)

8 hours ago | 1

| accepted

Answered
Using find command to find bifurcation points
Here is a loglog plot of the difference between M(1,:) and M(2,:). I think what you are actually trying to do is find the f...

10 hours ago | 0

| accepted

Answered
Compare two arrays (intersection) and create new array with output columns, but with repetitions
It's a little convoluted, but this should work: A = [1 3500, 2 100, 2 564, 3 2140, 3 9820, 2 8952] B = [1 0 0 0.5, 2 0 0 0.8, ...

1 day ago | 0

Answered
How to rearrange the output variables for matlabFunction()?
I don't know the answer to your sorting question. However, pulling back to the big picture for a moment, it seems like storing ...

1 day ago | 0

Answered
Matrix manipulation Question - arranging rows
sortrows(a,1) See the documentation for sortrows for details.

2 days ago | 0

Answered
GUIDE MATLAB R2019a
Create a simple app using GUIDE

2 days ago | 0

Answered
How do I generate a matrix from a function?
Here is a better way to do it, without for loops at all: wind_speed_range = 15:5:115; air_temp_range = -60:5:10; [ww,aa] ...

2 days ago | 0

Answered
How do I generate a matrix from a function?
Here is one way to do it, via similar for loops to what you set up. wind_speed_range = 15:5:115; air_temp_range = -60:5:10; ...

2 days ago | 0

Answered
combination of integer numbers
I would download John D'Errico's partitions function, and then I believe your answer is p = partitions(15,[1 1 1 1])

2 days ago | 0

Answered
How to re-arrange swapped elements in an estimated vector as compared to a reference vector
Here is a different approach. It relies on the fact that you want the first three inputs to be in ascending numeric order, and i...

2 days ago | 0

| accepted

Answered
Within- & between-subjects in 'anovan'
This documentation page seems to be a pretty exhaustive description of how one can specify the test.

3 days ago | 0

Answered
The lot of plot doesn't shown
In your code, Throughput is just a single value, that gets overwritten during each iteration of the for loop. I'm guessing you ...

3 days ago | 0

Answered
How to plot mean scores of dataset with different number of variables
% Make up some pretend data data = rand(2922,23); % 1-320, 321-655, 656-1001, 1002-1338, 1339-1684, 1685-2027, 2028-2348, 23...

3 days ago | 0

Answered
Sum up dissimilar values in a matrix
If M is your array ... sum(unique(M(M~=1)))

3 days ago | 0

| accepted

Answered
Reset the order of table columns
% Make the table x = rand(2,1); y = rand(2,1); tbl = table(x,y) % Rearrange the column order tbl = tbl(:,[2 1]);

3 days ago | 0

Answered
How can I use "IF" statement to prevent adding same element to an array?
Would it be acceptable to just remove duplicated rows after-the-fact? If so, you could do B = unique(B,'rows'); It seems likel...

3 days ago | 1

| accepted

Answered
Why is norm pdf 0 .3989?
You want normcdf(0) not normpdf(0)

3 days ago | 0

Answered
extracting specific data out of big data
Your question is not perfectly clear to me, especially regarding the size and shape of your input array(s) the exact output th...

3 days ago | 0

Answered
How to know the number of colunma having the magnitude and the row number in a matrix.
A = [ 6 5 3 1 9 2 4 6 8 5 12 14 6 18 16] row = 2; val = 6; find(A(row,:)==val)

4 days ago | 1

Answered
Bar plot with negative and positive values, stacked, and with non-zero base value
For what it is worth, this is not a bug. It is a change that was documented in the release notes for R2019b. It's in the Graphic...

4 days ago | 1

Answered
How to initialize an array such that the values satisfies an equation
I think if I were going to try to solve that problem, I would take as a starting point Roger Stafford's function randfixedsum, f...

4 days ago | 0

| accepted

Answered
Why is the output of power spectrum this shape?
I expect that the answer to your question is embedded in the Spectrum Computation section of the documentation for pspectrum.

4 days ago | 0

Answered
summing along 3rd dimension every 10 frames
Stephan provided a slick one-liner, but I think it might also be useful for you to see what mistakes you made. Here is a correct...

4 days ago | 0

Answered
Anybody know how to import excel file or other (table) using MATLAB MOBILE?
If the Excel file is available in your MATLAB Drive, then you have a variety of options. One simple one is readtable. tbl = rea...

4 days ago | 0

Answered
Correlation between two matrices
One possibility, which ignores any element for which A or B is NaN, is corrcoef(A,B,'rows','complete')

5 days ago | 1

Answered
How to re-arrange swapped elements in an estimated vector as compared to a reference vector
% Inputs u=[0.5 1 1.5 0.6981 1.3962 1.5707]; Est1=[0.499 1.002 1.5001 0.6890 1.3880 1.49998]; Est2=[0.9999 0....

5 days ago | 0

Load more