Community Profile

photo

the cyclist


Alden Scientific

Last seen: Today 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

배지 보기

Content Feed

보기 기준

답변 있음
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...

약 23시간 전 | 0

답변 있음
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...

1일 전 | 0

답변 있음
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...

3일 전 | 0

답변 있음
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 ...

4일 전 | 0

| 수락됨

답변 있음
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...

5일 전 | 0

답변 있음
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...

5일 전 | 0

답변 있음
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...

6일 전 | 0

답변 있음
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...

6일 전 | 0

답변 있음
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...

8일 전 | 1

| 수락됨

답변 있음
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. (...

8일 전 | 0

| 수락됨

답변 있음
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); ...

10일 전 | 0

| 수락됨

답변 있음
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...

11일 전 | 0

답변 있음
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...

13일 전 | 0

| 수락됨

답변 있음
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 ...

13일 전 | 0

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

13일 전 | 0

| 수락됨

답변 있음
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,...

14일 전 | 0

| 수락됨

답변 있음
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)

14일 전 | 0

답변 있음
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...

15일 전 | 0

답변 있음
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...

16일 전 | 0

답변 있음
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...

16일 전 | 0

답변 있음
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...

16일 전 | 0

답변 있음
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 ...

17일 전 | 1

답변 있음
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...

17일 전 | 0

| 수락됨

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

20일 전 | 1

| 수락됨

답변 있음
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...

23일 전 | 1

답변 있음
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...

23일 전 | 0

답변 있음
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)

24일 전 | 0

| 수락됨

답변 있음
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, ...

25일 전 | 0

답변 있음
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 ...

약 1달 전 | 0

| 수락됨

답변 있음
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...

약 1달 전 | 0

| 수락됨

더 보기