Community Profile

photo

the cyclist


Alden Scientific

Last seen: Today Active since 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 4
  • Likeable
  • Famous
  • First Review
  • First Submission
  • 36 Month Streak
  • Revival Level 3
  • Knowledgeable Level 4
  • First Answer

View badges

Content Feed

Answered
Create a Rayleigh distribution fitting experimental data
According to the documentation for raylfit, it takes the raw data as input. Is there a reason you are not simply using B=raylfi...

7 days ago | 0

Answered
what is Total cost in matlab
In machine learning, "cost" refers to the idea that misclassification errors are bad, and therefore have a penalty or cost. Her...

7 days ago | 1

| accepted

Answered
how can i compute the stander diviation and confidence intervales for a matrix?
If you have the Image Processing Toolbox, you can use the std2 function to compute the standard deviation of all the elements of...

8 days ago | 0

Answered
How to determine the lag angle between two snine wave
I believe you will only get exactly 90 if you could sample at infinitesimal resolution and/or a signal that extends for infinite...

10 days ago | 0

Question


Can I use .aws/config file to provide AWS S3 credentials?
I have been able to successfully access files on an AWS bucket via the syntax readtable('s3://bucketname/filename.csv') when I...

11 days ago | 1 answer | 0

1

answer

Answered
Why does Matlab not manage to evaluate a certain variable in my code?
Is this really the expression you want to evaluate? int(expm(A2*t),t,0,(1-D)*Ts)*B2 The reason I ask is that it has a differen...

11 days ago | 0

Answered
Evaluate Multiple Conditions in Expression
if (IntX < 1) | (IntX > Inner(3)) | (IntY < 1) | (IntY > Inner(4)) ah.Color=[1, 1, 1]; xlabel(ax, ' '); return; ...

14 days ago | 0

| accepted

Answered
Index exceeds the number of array elements (0)
You have confusingly defined both Xn and xn. You are trying to access the variable Xn, which is an empty array. I'm guessing yo...

14 days ago | 0

Answered
Can you change the value of a variable while program is paused?
Yes, you can. I wasn't sure, but I just tested with the simple program i=0; while true i = i+1 end I was able to pause...

15 days ago | 0

Answered
Mapping Toolbox 'distance' command inconsistent results with 'radians' units
I have no experience with this toolbox/function, but I'm guessing you also need to treat the input units accordingly as radians....

16 days ago | 1

| accepted

Answered
How to implement kriging in Matlab?
Googling "MATLAB" and "kriging" turned up this submission from the File Exchange.

16 days ago | 0

Answered
how to create a for loop for 3 variables
% Make up a random input. (You don't need this step) Point = rand(1,3*15*7); % Define these parameters for convenience NR =...

19 days ago | 0

| accepted

Answered
don't know the problem in my while loop
You initialize the value of i to be zero. Then you try x(i) which is equivalent to x(0) which means you are trying to acce...

22 days ago | 0

| accepted

Answered
Make Equal tick spacing in a loglog plot
I am not certain that I understand what you mean, but maybe you want the semilogx function rather than loglog?

24 days ago | 0

Answered
Plot two functions with several changing variables
I ran your code inline here. I'm guessing the slightly different error message is due to different MATLAB versions. The heart o...

26 days ago | 0

Answered
Requirements for econometrics work
To my knowledge, Mathworks does not publish system requirements for particular toolboxes. According to the system requirements f...

28 days ago | 0

Answered
Legend displaying the same color for all lines
This pair of lines causes a problem in my MATLAB setup (R2021b on an M1 Mac). I'm not sure if it valid MATLAB syntax in general....

1 month ago | 0

Answered
how to plot histogram from an array ?
Histograms start from the data before they have been binned. You just need a bar chart. If your data are stored in a MATLAB tabl...

1 month ago | 0

Answered
why does 'sum' and 'trapz' function show same result ?
sum() and trapz() do not give the same result, even assuming uniform spacing: Y = [1 2 3 4 5]; sum(Y) trapz(Y) It only seeme...

1 month ago | 1

Answered
How to divide whole string with specific number?
A = [1 2 3 4 5 6 7 8 9]; A_2 = A/2; divide = [6 7 8 9 6 3 4 2 5]; results = A./divide See Array vs. Matrix Operations for de...

1 month ago | 0

| accepted

Answered
What is the greatest advantage of MATLAB over Python, in ML?
Disclaimer: I am a 90% MATLAB / 10% python user, so I could be biased. I think one big advantage of MATLAB over python is the c...

2 months ago | 0

Answered
Plot function in matlab
You can use the loglog function to create a plot like that. See the documentation for details. Also, for your future reference,...

2 months ago | 0

Answered
Setting up Matrix in a Different way
This does what you want via a straightforward loop. I expect there is a slicker way to do this. A=[1 10 12; 2 12 3; 3 ...

2 months ago | 0

| accepted

Answered
Unrecognized function or variable 'x'.
Because you have the code x = linspace(-2.*pi,2.*pi); the value of x that comes in via the input is never used. That is why yo...

2 months ago | 0

Answered
Can my x-axis have varying scales for certain ranges of values?
Here is a simple example: x = 1:10; y = 2*x; figure plot(x,y) xtick_loc = [0:0.5:2 3:2:7 8:0.5:10]; set(gca,'XTick',xtic...

2 months ago | 0

Answered
Creating a plot where my x and y values are defines by equations of another variable
Here is a simple example. z = 1:10; x = 2.*z; y = 3.*z; figure plot(x,y) xlabel('x') ylabel('y')

2 months ago | 0

Answered
Why won't my plot graph a line?
Because you defined x as a looping variable, after the loop is completed, x is equal to just the last value in the loop. Instead...

2 months ago | 0

| accepted

Answered
Check whether values of a certain column of a matrix is between two values
OK, still trying to understand everything, but I think this does what you want: % Sample input BUS(:, 8) = [2;2;2]; BUS(:,12)...

2 months ago | 0

| accepted

Answered
Check whether values of a certain column of a matrix is between two values
I think you intended volmax<0 & volmin <0 rather than volmax<0 | volmin <0 because you want to meet both conditions ("AND"),...

2 months ago | 0

Answered
Select only determined rows in a matrix
% First matrix A = rand(200,2); % New matrix B = A(10:10:end,:); % This will start with the 10th row. You could do B = A(1:...

2 months ago | 0

| accepted

Load more