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

約11時間 前 | 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 ...

1日 前 | 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...

2日 前 | 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...

3日 前 | 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...

4日 前 | 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...

4日 前 | 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...

6日 前 | 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. (...

6日 前 | 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); ...

7日 前 | 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...

9日 前 | 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...

11日 前 | 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 ...

11日 前 | 0

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

11日 前 | 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,...

12日 前 | 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)

12日 前 | 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...

13日 前 | 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...

14日 前 | 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...

14日 前 | 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...

14日 前 | 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 ...

14日 前 | 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...

15日 前 | 0

| 採用済み

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

18日 前 | 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...

20日 前 | 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...

21日 前 | 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)

22日 前 | 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, ...

23日 前 | 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 ...

29日 前 | 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...

29日 前 | 0

| 採用済み

回答済み
Regression tree and prediction equation
This model is probably nonsense, because of the linear dependencies that @dpb points out. But perhaps your real data will yield ...

29日 前 | 0

| 採用済み

回答済み
Is there a way to use a loop to generate outputs for a section of data (like rows 1 through 206) and then moving on to doing the same for subsequent rows within the same loop?
A somewhat more "advanced" way -- but perhaps more intuitive -- would be to convert Data into a 3-dimensional array first, where...

約1ヶ月 前 | 0

さらに読み込む