Community Profile

photo

the cyclist


3,684 total contributions since 2011

Data scientist at Cohen Veterans Bioscience; Obsessive runner. Professional Interests: Predictive modeling, statistics.

Contact

the cyclist's Badges

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

View all

Contributions in
View by

Answered
Problem with Power Regression
polyfit(...,2) is fitting a constant, linear, and quadratic term. Notice that the output vector p has three elements. You want t...

2 hours ago | 0

Answered
What is the difference between rand and copularand
It's a little difficult to know where to start with an explanation? Do you know what a copula is, and why it is used? If not, ma...

9 hours ago | 0

Answered
Error SIGMA must be a symmetric positive semi-definite matrix
This issue will arise when you get pairwise asset correlations that are inconsistent. (The zeros are not necessarily the problem...

2 days ago | 0

Answered
K-Means: Indices of C in idx
I'm not certain I fully understand your question, but I'll make a guess. The centroid is not (necessarily) one of the points of...

2 days ago | 1

| accepted

Answered
Change the format of x axis in a Kernel density plot.
Instead of the plot command, use semilogx.

3 days ago | 1

| accepted

Answered
Array indices must be positive integers or logical values.
You need to explicitly put in the multiplication sign: out(1)=(-k1*G2+k2*(G4-G2))/m1; and similarly in the assignment to out(3...

3 days ago | 1

Answered
Plot bar chart with log scale on y axis
There are some good thoughts on how to handle this problem in response to this question. In particular, the accepted answer by M...

3 days ago | 0

Answered
How do I obtain standarized coefficients when applying a stepwise multilinear regression?
I'm not sure I would necessarily expect coefficients to be in that range, even for normalized variables. Can you quote a referen...

3 days ago | 0

| accepted

Answered
Generating musical note from given frequency
There is of course a lot that goes into what a note sounds like, beyond just the frequency. I expect MATLAB is generating the c...

3 days ago | 0

Answered
problem using hold on in a for loop
Your variable N is a single value -- a scalar. (It is an array of length 1.) You then define n to be the length of that array. S...

3 days ago | 0

Answered
add a cell array in double for one more column in uitable
Convert the numeric array into a cell array before concatenating. Then use the cell array as the input to the uitable command. ...

4 days ago | 0

| accepted

Answered
Wrong axis value in correlation plot
I don't have the Econometrics Toolbox, so I can't confirm myself. But if that is really the only thing you did, then I think thi...

6 days ago | 0

| accepted

Answered
create table from matrix and cell variables
I'm not certain what you want, but I think this is it. % Make up some original inputs A = rand(18,257,176); B = cell(176,1); ...

6 days ago | 1

| accepted

Answered
How to apply function eig to an array of matrices?
cellfun(@eig,A,'UniformOutput',false) or something like this, will be at the heart of your solution. You might need to read the...

12 days ago | 0

Answered
Running Matlab, accents are replaced by question marks in the outputs
Your code renders correctly for me in R2019a, on a mac running mojave. There are some ideas in response to this question that c...

12 days ago | 1

Answered
How does mdl.Rsquared.Ordinary and mddl.Rsquared.Adjusted work?
R-squared and adjusted R-squared are invariant to scaling and mean-centering of the input data. So, you don't need to do it. But...

14 days ago | 0

| accepted

Answered
How to copy first column, and replace other columns with this first column values in same array in MATLAB? (array size can vary)
If your original array is A, then I think A(mod(A,10)==1)=1; will do what you want.

15 days ago | 0

Answered
For Loop not working. Not iterating through my data.
I did not try running your code, but I'm pretty confident that this line if time5_00(x+1)> timeV_5_00(y) >time5_00(x) is not d...

15 days ago | 0

Answered
fitting with my function
If you have the Statistics and Machine Learning Toolbox, then fitnlm is probably your best option for this sort of non-linear fi...

15 days ago | 0

Answered
How to modify Box Plot outliers marker size?? Can I insert a legend?
I think the following should work for you: figure boxplot(randn(1000,2)) h = findobj(gcf,'tag','Outliers') set(ho,'MarkerSiz...

16 days ago | 0

| accepted

Answered
Fit data using a function
The equation you have written there has no parameters. It has only constants and the data. But if each of those constants (e.g....

18 days ago | 0

| accepted

Answered
Multiplayer update when?
You can use MATLAB Drive to store files in the cloud, and share with others.

21 days ago | 1

| accepted

Answered
PCA scaling and centering documentation wrong?
Answering a gazillion years after-the-fact, because I just turned this up in my own search. X = [1.0000 -3.0000 -1.0000; 2.0000...

23 days ago | 0

Answered
Finding maximum value and corresponding variable
P = rand(10,40,10); % Some pretend data [P_max,linear_index_max] = max(P(:)); % Find max and index, for linearized matrix [mc,...

26 days ago | 0

| accepted

Answered
How can I display a bar chart ?
Use the bar function.

1 month ago | 1

Answered
Plot and interp using Spline method
It's presumably because you have not chosen your query points to be very close together. Do you get something closer to what you...

1 month ago | 0

Answered
how can i get activation key
If you are looking to purchase MATLAB products, you could start at the MATLAB store.

1 month ago | 0

Answered
How can I add an expiration date and time to my script or P-code file?
One way that you could do it would be to put a line in your *.m file code that checks the date [using, for example, the now() fu...

1 month ago | 0

Answered
list names in an array
I'm pretty sure there is a better, simpler way to do this, but I believe this does what you want: s = dir; fileList = cellfun(...

1 month ago | 1

Answered
I need some help with arrayfun
I believe that groupsummary is for data stored in tables only. You can do what you want with [sortedResponses,~,idx] = unique(...

1 month ago | 0

Load more