Community Profile

photo

the cyclist


3,681 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
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...

1일 ago | 1

| accepted

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

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

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

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

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

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

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

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

5일 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); ...

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

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

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

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

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

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

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

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

17일 ago | 0

| accepted

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

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

22일 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,...

25일 ago | 0

| accepted

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

30일 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달 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달 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달 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달 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달 ago | 0

Answered
How to do feature selection by maximizing Rsquared for linear regression model ?
I believe you just need to redefine the critfun function from the one in the example: function dev = critfun(X,Y) model = fitg...

약 1달 ago | 0

Answered
How do I optionally disable code for a missing toolbox?
All credit to Walter, but I believe you'll want to do this test: license('test','Distrib_Computing_Toolbox')

약 1달 ago | 0

Answered
Why the script of function is always stored in two files ".m" and ".m~"?
It is an auto-saved backup file. See this page for details.

약 2달 ago | 2

| accepted

Load more