# the cyclist

### Alden Scientific

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

RANK**15**

of 250,046

REPUTATION**13,192**

CONTRIBUTIONS

**38** Questions

**4,510** Answers

ANSWER ACCEPTANCE **
76.32%
**

VOTES RECEIVED**2,464**

RANK**9,353** of 17,372

REPUTATION**57**

AVERAGE RATING**0.00**

CONTRIBUTIONS**1** File

DOWNLOADS **1**

ALL TIME DOWNLOADS**572**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

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

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

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

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

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

10 days ago | 1 answer | 0

### 1

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

10 days 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; ...

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

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

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

15 days ago | 1

| accepted

How to implement kriging in Matlab?

Googling "MATLAB" and "kriging" turned up this submission from the File Exchange.

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

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

21 days 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?

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

25 days ago | 0

Requirements for econometrics work

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

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

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

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

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

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

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

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

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

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

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

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

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

2 months ago | 0

| accepted

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

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