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 5
  • Likeable
  • Famous
  • First Review
  • First Submission
  • 36 Month Streak
  • Revival Level 3
  • Knowledgeable Level 5
  • First Answer

View badges

Content Feed

Answered
find first& end of array
I expect someone will post a more elegant method, but I think this does what you want S=[0 1 5 2 0 0 0 9 3 50 53 0 0 5 7 4]; ...

etwa 22 Stunden ago | 0

Answered
How do I make a World Cup simulator with MATLAB?
You can use the randperm function to select 2 out of 4 teams to advance in each section. rng default A={'Qatar';'Ecuador';'S...

etwa 22 Stunden ago | 0

Answered
Hypothetical Factorial Question Solution
I don't really intend this to be a serious answer to your question, but according to the internet, this formula will work up to ...

2 Tage ago | 0

Answered
How to form the training set ?
I spent a little bit more time with the paper. It seems to me that in the paper, the labels y are supposed to be used when gene...

3 Tage ago | 0

Answered
How to deal with this grpstat error message
I think you want to use "mean" instead of "average" for the summary statistic.

5 Tage ago | 0

| accepted

Answered
Find function in arrays
You can use the ismember function to find out whether each element of one vector is present in the other, and also the location....

6 Tage ago | 0

Answered
How to use bitn
I'm not sure if this is what you mean, but there are several integer classes available in MATLAB.

6 Tage ago | 0

Answered
How can I accelerate my Matlab program
tic f=(400:1000); q=5; m=5; rk=4096; f1=length(f); for a=1:f1 for b=1:q for c=1:m for d=1:rk end end end end toc ...

6 Tage ago | 0

Answered
How I categorize a features?
Do you mean that you have numerical values, and you want to treat those as categorical instead? You can convert numeric to categ...

6 Tage ago | 1

| accepted

Answered
How to form the training set ?
If I understand all of your notation correctly, I think your training set needs to be an Mx3 matrix. If means that each observ...

6 Tage ago | 0

| accepted

Answered
how can i find my license number ?
In the upper right of the screen here, you should see "Get MATLAB", and an icon representing your account. Click on that icon, a...

7 Tage ago | 0

Answered
Creating a seed for ICA on eeglab to make sure same ICA components are created every time
Put the line rng default at the start of your code. See rng for details.

8 Tage ago | 0

Answered
How can I use the command 'tiledlayout' inside a loop
The key is to create two different figures, each of which you can build up a tiled layout. Here is a trivial example of two fig...

8 Tage ago | 0

| accepted

Answered
Subplots of subplots (maybe using subaxis)
I would try the native tiledlayout function to make the subplots. I've never used beast, so I'm not sure if there are any weird ...

9 Tage ago | 1

Answered
permutations of 4 numbers in 7 positions IF the sum of the numbers is 600
This is a "making change" problem, where the smaller numbers can represent coins, and the large number is the total of the chang...

9 Tage ago | 0

Answered
How to apply SVM on training and testing data
You can use the fitcecoc function from the Statistics and Machine Learning Toolbox to fit multi-class SVMs. I've never used the...

10 Tage ago | 0

Answered
How to distribute random number of users within the different circles
There are several ways to do this. Here is one. I illustrated with 20 users, because with 200 users it is difficult to tell tha...

10 Tage ago | 0

| accepted

Answered
How to plot an x value using for loop from an input?
I have to admit that I did not fully understand your explanation. But I can tell you the specific reason you are getting an inde...

12 Tage ago | 0

Answered
Interpolate between specific values in a data set
You can use the interp1 function to do interpolation. x = [1, 2.2, 3, 4]; y = [0.2, 0.35, 0.4, 0.5]; x0 = 3.5; y0 = inte...

12 Tage ago | 0

| accepted

Answered
I have a 4x4 array of 1's and I need to turn 3 of 4 ones to zero per row at random. So there will be a one 1 left in each row.
Here is one way: N = 4; x = (1:N)'; y = randi(N,N,1); linearIndex = sub2ind([N,N],x,y); B = zeros(N,N); B(linearInde...

12 Tage ago | 0

Answered
New to MatLab: How to enter given data for a random variable (&find /fit distribution function)
Here is a method that does not require the Statistics and Machine Learning Toolbox: % Input data N = 100; outcome = [1; 3; 4;...

12 Tage ago | 0

Answered
New to MatLab: How to enter given data for a random variable (&find /fit distribution function)
If you have the Statistics and Machine Learning Toolbox, you can use the randsample function: N = 100; outcome = [1; 3; 4; 5; ...

12 Tage ago | 0

Answered
My Matlab take so long to start on AWS
There are a number of startup options. For example, using -nosplash will prevent that particular image from displaying. A good s...

13 Tage ago | 0

Answered
Why do I get more error bars than I defined?
For most of your points, you are not plotting no error bar; you are plotting an error bar with zero error. You could make the d...

13 Tage ago | 0

| accepted

Answered
I am trying to work out a volume given input values but it says theres an error ''Index must not exceed 1''?
This expression: NumberOfFloors(WidthOfFloors*LengthOfFloors*HeightOfFloors) is trying to index into the variable NumberOfFloo...

17 Tage ago | 1

| accepted

Answered
Dark Mode editor for MATLAB
UPDATE April 2022 - Please see this Answer for more details on dark mode: https://www.mathworks.com/matlabcentral/answers/167119...

18 Tage ago | 14

| accepted

Answered
Why isn't sum of logs == log of product?
They are equal to within double precision: log(3) + log(4) - log(3*4) There are many places on this forum that discuss this in...

18 Tage ago | 0

Answered
How to delete the first or the first two characters in a string?
In modern MATLAB parlance, 'W987' is a character array, not a string. @KSSV's answer is accurate in your case, but will not wor...

22 Tage ago | 0

Answered
How can I store the corresponding temperatures (T), specific volumes (v), and entropies (s) of a thermodynamics superheated table in MATLAB arrays.
I recommend using Tabula to extract the data from the PDF file into a text file or spreadsheet. Then there are a few ways to pu...

24 Tage ago | 0

Load more