Community Profile

photo

the cyclist


Alden Scientific

Last seen: Today Con actividad desde 2011

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.)

Programming Languages:
Python, R, MATLAB, SQL
Spoken Languages:
English

Statistics

All
  • Treasure Hunt Participant
  • Scavenger Finisher
  • Master
  • Thankful Level 5
  • Likeable
  • Famous
  • First Review
  • First Submission
  • 36 Month Streak
  • Revival Level 3
  • Knowledgeable Level 5
  • First Answer

Ver insignias

Content Feed

Respondida
How to find the histogram of each row vector from 8-by-10000 matrix?
The histogram function is primarily for plotting histograms. As described in that documentation, the output you are getting is t...

3 días hace | 0

Respondida
How to calculate the coefficient of determination R^2 of a Neural Network?
The formula is in the documentation here (for fitlm).It is not always the best goodness-of-fit measure for all models, but you s...

4 días hace | 0

Respondida
How to run matlab on GPU
I'm not sure what you mean by "automatically". I would start with the documentation page on how to Run MATLAB Functions on a GPU...

5 días hace | 0

Respondida
I used "[b,dev.stats]=glmfit(b1,a1,'binomial')" function, and it has an error..
You should carefully read and understand this section of the documentation for glmfit, which specifies what is expected for the ...

6 días hace | 0

| aceptada

Respondida
How to use Shapley function for an already fitted regression model?
To my knowledge, there is no way to use MATLAB's shapley function other than with a blackbox model object as the input. The poss...

7 días hace | 0

Respondida
zeros of a matrix
The code you have posted here runs without error. M=rand(5); A=zeros(size(M,2)); My best guess here is that you have a variab...

7 días hace | 0

Respondida
How to make certain indexes of a cell array empty?
Here are a couple ways: % Make up a cell array of pixelBlock pixelBlock = {'2','3','5',7; 11, 13, '17', '19'} % Replace a f...

8 días hace | 0

Respondida
i dont understand the error here, where do i put the parantheses??
It looks like on this line of your code: wn = pi/((S.PeakTime)(1-(zeta)^2)^ 0.5) you are assuming that MATLAB will understan...

8 días hace | 0

Respondida
Curve fitting tool fits a wrong equation
I can't figure out what is going wrong here, and I don't have the Curve Fitting Toolbox to play around. I get a sensible fit us...

10 días hace | 1

| aceptada

Respondida
Differences in power law fit vs. linear fit on log-log scale
Hm. I get much closer values when I use fitlm (0.498) and nlinfit (0.504), for the log-space and original space, respectively. (...

11 días hace | 0

| aceptada

Respondida
How to prevent the elongated plot when using tiled layout for image and plot
There are a few ways you can manipulate this. Here is one way, using the daspect command you used before: [X,Y,Z] = peaks(20); ...

12 días hace | 0

| aceptada

Respondida
I want to ask if it is possible to add these two horizontal matrices and if so, how?
As shown below, these two arrays have different sizes, and not even the same number of elements. Tt is very unclear, mathematica...

14 días hace | 0

Respondida
I used "autocorr"function and got this graph. How can I interpret this grpah meaning?
It's difficult to know how much needs to be explained here. I'll assume that you know what autocorrelation is. Unless you speci...

16 días hace | 0

| aceptada

Respondida
Constrained multiple linear regression with multiple dependent variables
I think mvregress does what you want. It has been ages since I've used it, but I wrote a pretty detailed answer that gave three ...

16 días hace | 0

Respondida
How to use unique() in a cell array
I'm not certain, but I believe what you want is unique(vertcat(b{:}))

16 días hace | 0

| aceptada

Respondida
Blockwise matrix addition without using more than 2 dimensions and cycles
This is awkward, but it does what you want. I think there is probably a better way. % Inputs A = [1,2,3,4,5,6,7,8; 9,10,11,12,...

17 días hace | 0

| aceptada

Respondida
Blockwise matrix addition without using more than 2 dimensions and cycles
A = [1,2,3,4,5,6,7,8; 9,10,11,12,13,14,15,16]; B = A(:,1:end/2) + A(:,(end/2)+1:end)

17 días hace | 0

Respondida
i want to multiply input * gex , where input is (60000 *784) and gex is (784 *1000), but when i multiply that i get this error message Error using input Not enough input a
The main problem here seems to be that input is a built-in MATLAB function, and your code is trying to call it (and doesn't have...

18 días hace | 0

Respondida
Mean data of each month (Data Matrix)
Here is one way: % Create a table of pretend data, in your format Var1 = [2000; 1; 1; 0.12]; Var2 = [2000; 1; 2; 0.13]; Var3...

18 días hace | 0

Respondida
Grouping data to reduce number of columns in a table
% Some pretend data TenSecResult = magic(3); % The output you want output = string(TenSecResult(:,1)) + "-" + string(TenSec...

18 días hace | 0

Respondida
How can I stop manually a true while loop?
When a file is executing, the Run button in the editor window becomes a Pause button. Pressing that will pause execution, with a...

19 días hace | 0

Respondida
Unable to perform assignment because the left and right sides have a different number of elements.
The assignment will only have the same number of elements if maskMax3D and maskMin3D have the same number of TRUE elements. For ...

19 días hace | 1

Respondida
How to plot the following figure in matlab?
I can't tell if you are asking for help in how to draw each individual plot, or just placing the individual plots. If you are j...

19 días hace | 0

| aceptada

Respondida
Write variable label on the Y-axis of graphs
plot(rand(3)) ylabel("$\tilde H_{H,2}^{H,1}$","Interpreter","latex")

23 días hace | 1

| aceptada

Respondida
Plotting Only 4 Time steps
I expect that this if statement is not doing what you expect ... if(mod(t,10)) The lines following that will be executed whene...

25 días hace | 1

Respondida
Changing Values in a while loop
I could not tell exactly what your code is supposed to do, but here I made a couple modifications: Bring the end statement that...

26 días hace | 0

Respondida
I want to repeat an array by another array
A = [1,2,3,4,5]; B = [2,3,1,7,2]; % You had a mismatch in the length of B compared to A C = repelem(A,B)

27 días hace | 0

| aceptada

Respondida
I need to get the r-square of the model
Instead of calling the fit function with one output sf = fit([xdata, ydata], zdata, 'poly11'); call it with two outputs [sf, ...

28 días hace | 0

Respondida
split mtatrix and name automatically
Anywhere that you could have used the variable name ur1, you can almost always just reference ur(:,1) directly instead, and not ...

alrededor de 1 mes hace | 0

| aceptada

Respondida
Modify Tabs in Editor (Matlab 2022a)
The "Run and Time" and debugging features are now in a pull-down menu underneath the Run button in the Editor tab. I didn't fin...

alrededor de 1 mes hace | 0

| aceptada

Cargar más