# 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 293

REPUTATION**13 200**

CONTRIBUTIONS

**38** Questions

**4 513** Answers

ANSWER ACCEPTANCE **
76.32%
**

VOTES RECEIVED**2 466**

RANK**9 357** of 17 386

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

How to create an array of matrices?

Given your comment on my other answer, another possible solution is to stack the matrices as slices in a 3rd dimension: A = [1 ...

3 jours ago | 0

How to create an array of matrices?

You could use a cell array: A = [1 2 ; 3 4]; B = [5 6 ; 7 8]; C = [9 10 ; 11 12]; D = {A, B, C} I think the best answer w...

3 jours ago | 1

How to perform division correctly?

Variants of this question come up a lot. It is not a "problem with division", but a consequence of the fact that some decimal nu...

3 jours ago | 0

| accepted

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

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

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

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

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

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

14 jours 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; ...

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

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

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

19 jours ago | 1

| accepted

How to implement kriging in Matlab?

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

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

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

25 jours 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?

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

29 jours ago | 0

Requirements for econometrics work

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

environ un mois 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....

environ un mois 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...

environ un mois 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...

environ un mois 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...

environ un mois 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...

environ 2 mois 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,...

environ 2 mois 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 ...

environ 2 mois 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...

environ 2 mois 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...

environ 2 mois 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')

environ 2 mois 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...

environ 2 mois ago | 0

| accepted