Community Profile 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
• • • • • • • • • • • • Content Feed

View by

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

4 dagen ago | 0

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

4 dagen ago | 1

| accepted

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

5 dagen ago | 0

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

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

8 dagen ago | 1 answer | 0

1

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

8 dagen ago | 0

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

11 dagen ago | 0

| accepted

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

11 dagen ago | 0

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

12 dagen ago | 0

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

13 dagen ago | 1

| accepted

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

13 dagen ago | 0

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

16 dagen ago | 0

| accepted

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

19 dagen ago | 0

| accepted

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?

21 dagen ago | 0

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

23 dagen ago | 0

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

25 dagen ago | 0

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

27 dagen ago | 0

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

29 dagen ago | 0

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

ongeveer een maand ago | 1

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

ongeveer een maand ago | 0

| accepted

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

ongeveer 2 maanden ago | 0

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

ongeveer 2 maanden ago | 0

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

ongeveer 2 maanden ago | 0

| accepted

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

ongeveer 2 maanden ago | 0

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

ongeveer 2 maanden ago | 0

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

ongeveer 2 maanden ago | 0

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

ongeveer 2 maanden ago | 0

| accepted

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

ongeveer 2 maanden ago | 0

| accepted