
the cyclist
Alden Scientific
Head of Modeling and Statistics at Alden Scientific. 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.)
Python, R, MATLAB, SQL
Spoken Languages:
English
Statistics
RANK
15
of 273,095
REPUTATION
14,155
CONTRIBUTIONS
41 Questions
4,829 Answers
ANSWER ACCEPTANCE
73.17%
VOTES RECEIVED
2,672
RANK
9,731 of 18,445
REPUTATION
57
AVERAGE RATING
0.00
CONTRIBUTIONS
1 File
DOWNLOADS
2
ALL TIME DOWNLOADS
574
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
help me to find error in this file?
The error seems to be that you are missing parentheses, or they are otherwise mismatched. We could guess at where they are missi...
9 hours ago | 0
Use data array with specific names
You are seeing first-hand why variables should not be named dynamically. If at all possible, this problem should be solved upstr...
1 day ago | 0
Finding the first index of a row where all integers of a defined list have occurred
I 100% agree with @John D'Errico's take on this, which is that any non-loop solution here is (probably) going to be sufficiently...
3 days ago | 0
How can I plot this X and Y data?
It's unclear to me exactly what you want to plot. That file has 10,048 data points. Here is one possibility, which puts a dot a...
4 days ago | 1
Way to solve AX=XB
This is a special case of the Sylvester equation. Looks like the sylvester function will be helpful for you. You might also be...
6 days ago | 0
linear mixed-effects model (fitlme) add array variable
I am by no means an expert on image processing, but one possibility is to preprocess your images to extract individual "features...
6 days ago | 0
post hoc tests for aoctool
After running aoctool and getting the stats output, you can simply run [results,~,~,gnames] = multcompare(stats) If you do tha...
6 days ago | 1
Mat structure to csv
I downloaded the first file on that page, which is EXIOBASE_3rx_aggLandUseExtensions_1995_pxp.mat, and then uploaded it to MATLA...
6 days ago | 0
| accepted
Randomly select one value from an Array.
Here is one way to pull 30 random values (with possible repeats) from A. randomIndex = randi(200,30,1); new_A = A(randomIndex)...
7 days ago | 0
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-120.
You haven't quite given us enough information about your code, because that little code snippet may or may not work, depending o...
7 days ago | 0
0.48 and 0.72 not detected in the array
Due to floating point precision, the values are not exactly 0.48. For example, load("varmat.mat","SessionData") SessionData.Co...
7 days ago | 1
What are the differences between integral and trapz?
Both functions perform numerical integration, but they use different methods. This is mentioned within the first couple of the d...
8 days ago | 2
how to split a dataset for training and testing in matlab?
randsample, cvpartition, and randperm can all be useful for creating training/test splits. As @Sargondjani mentions, we need mor...
9 days ago | 0
| accepted
run takes too long!
Vectorizing the for loop gives a nice speedup. There are almost certainly other optimizations possible. clc clear; % percent ...
10 days ago | 1
How to quantify the goodness of a fit?
EDIT: My first posting on this was incomplete, so I radically edited it. Sorry for any confusion if you saw the first version. ...
11 days ago | 0
| accepted
take the length of each row
There are probably a few ways to do this. Here is one, which relies on reading the file into a numeric array, which will pad the...
11 days ago | 0
How to create a vector that repeats 5 values per increment in a for loop?
v = 100:50:1000; u = repelem(v,5);
11 days ago | 0
Plot question as values for both axis are different
Do you mean you just want to place two plot on the same axes? Then you use hold figure hold on plot([2 3 5],[7 11 13]) plot(...
14 days ago | 0
Generate a random sequence of PAM-4 but with values -1,-0.33,0.33,1
I didn't research PAM-4 enough to know whether each element is independent from prior values. The following code will generate a...
15 days ago | 0
It is possible to use sprintf to print a string input?
I think you want c1= sprintf('Indicate the units of the variable %s',vi); rather than c1= sprintf('Indicate the units of the ...
15 days ago | 0
| accepted
Connecting to ChatGPT using API
Did you try following the instructions in the error message, and use Name-Value pair 'MediaType','application/x-www-form-urlenc...
15 days ago | 0
Counting sequences for a non-parametric statistical test (sequence test or RUN test).
I see you found and accepted a solution. An alternative would have been to download the versatile RunLength utility from the Fil...
15 days ago | 1
Array indices must be positive integers or logical values
I'm guessing that when you wrote B(L - x) (in two places), you intended this multiplication: B.*(L - x) instead. The way you...
16 days ago | 1
Plot curve through data points
You can use a different interpolation method. pchip looks like what you want: x = [15.9, 16.9, 17.5, 19.6]; v = [1.108287307, ...
17 days ago | 1
| accepted
Identify, for each column of a matrix, numbers that are smaller than the previous ones, creating a 0 1 output having the same size of the original matrix
My output is a bit different from yours, but I think I followed the algorithm you wanted. M = [ ... 1.05 21.22 17.2; ... 2....
17 days ago | 1
Select only the matrices within the cell
Does this do what you want? % Make up some input data, with one cell remaining empty A = cell(3,1); A{1} = rand(2,5); A{3} =...
18 days ago | 0
How to arrange a matrix in descending order w.r.t rows?
Answering here, based on your comment to my other answer. It seems that you just want to sort the matrix a according to its nor...
18 days ago | 0
How to arrange a matrix in descending order w.r.t rows?
Probably use the sortrows function. I'd be more specific, but it is unclear to me what you mean by "largest row". For example, w...
18 days ago | 0
how to get gini coeffecient
Seems to work here. (See the code that ran below.) Did you download the function and put it somewhere in your MATLAB path? Wha...
18 days ago | 0
Regression model with two equation
As @Torsten mentions in his comment, the way you have written your equations, it is not possible to see why they are coupled. T...
18 days ago | 0