Community Profile

photo

the cyclist


Last seen: Today
4,319 2011 이후 총 참여 횟수

Data scientist at Cohen Veterans Bioscience; 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.)

담당자

the cyclist's 배지

  • Scavenger Finisher
  • Master
  • Thankful Level 4
  • 36 Month Streak
  • Likeable
  • Famous
  • Quiz Master
  • First Review
  • First Submission
  • Revival Level 3
  • Knowledgeable Level 4
  • First Answer
  • Puzzler
  • Speed Demon
  • Creator

모두 보기

참여 게시물
보기 기준

답변 있음
multiplying scalar by matrix
In the exponentials, you missed an important set of parentheses, ensuring that you divide by the whole expression (lambda .* k ...

약 22시간 전 | 0

| 수락됨

답변 있음
How can i create a for loop that modifies a column in an existing matrix?
I would use the histcounts command to do this task: A = [1,1,3,4,5,1]; dicevalue = [1,2,3,4,5,6]'; throwCounts = histcounts...

1일 전 | 0

| 수락됨

답변 있음
Question about writing a function.
In the future, you might want to separate two such different questions as two different posts here. For your first question, wh...

2일 전 | 0

| 수락됨

답변 있음
How to same size of plot and histogram
I think that using h1= histogram(data2p,'Normalization','pdf'); h2= histogram(data3p,'Normalization','pdf'); and of course r...

2일 전 | 1

| 수락됨

답변 있음
draw a boxplot from a probability density function
Here is a very kludgy way to do it. You can generate a small "sample" dataset that has the same summary statistics as your PDF, ...

3일 전 | 0

답변 있음
Delete overlaping intervals in matrix
I expect there is a more elegant approach, but here is a straightforward way: M = [100 200 5; 150 210 7; 205 300 9;...

6일 전 | 0

| 수락됨

답변 있음
Delete overlaping intervals in matrix
I believe this does what you want: M = [100 200; 150 210; 190 300; 300 400; 410 600; 500 700]; keepRow = M(2:end,1) >= M(1:end...

6일 전 | 1

답변 있음
I want to use the Python libraries in MATLAB
Have you seen this documentation on calling python modules from MATLAB?

6일 전 | 0

답변 있음
how can I put the histfit function in terms of probability?
Here's one way: % Made-up data data = randn(500,1); % Fit to a normal (or a different distribution if you choose) pd = fit...

8일 전 | 0

답변 있음
help with error "Reference to a cleared variable n"
Putting clear all inside the function clears the variable n that you just sent into it. You don't need that line.

8일 전 | 0

| 수락됨

답변 있음
Using regexp to extract day number from long string
Is the directory depth reliably constant? If so, then % Input data str = 'folder\files and things\1996\other folder\ 6 <month>...

9일 전 | 0

답변 있음
Limiting the values of a column
If you mean that y is a column vector, then y_new = y((y>=-10) & (y<=10)) will give you a new column vector with only the valu...

9일 전 | 0

| 수락됨

답변 있음
Need help fitting given data to an exponential function
If you have the Statistics and Machine Learning Toolbox, you might be able to use the expfit function. If not, and you don't ha...

11일 전 | 0

답변 있음
How to search for an exact string not just contains
Use strcmp instead, which checks for identical matches. loc = {'Las Vegas, NV','North Las Vegas, NV'}; match = strcmp(loc,'L...

11일 전 | 0

답변 있음
Counting every other number in a list
I'm not sure what you mean by "count" them, but the following vector will store every other element from mylist, starting with t...

12일 전 | 0

| 수락됨

답변 있음
gaussian plot on my histogram
If you have the Statistics and Machine Learning Toolbox, you can use the histfit function to do the histogram and gaussian fit a...

15일 전 | 0

답변 있음
Who is using the MATLAB Discord channel?
This is the first I've heard of MATLAB having a Discord channel

15일 전 | 1

답변 있음
Get size of each element in a cell
You can use the cellfun command: cellfun(@size,myCell,'UniformOutput',false)

16일 전 | 1

| 수락됨

답변 있음
How to interpret PCA
@Jin Woo: If search this forum for cyclist and pca, you will find a few question/answers where I explain a lot about the interp...

16일 전 | 0

답변 있음
Numbering results from for loop with the iteration they come from
Don't use separate variable names. Use the cell array data type: K{i} = ( ( EALtheta(i,1) * EALtheta(i,2) ) / EALtheta(i,3) )*...

18일 전 | 0

답변 있음
Array indices must be positive integers or logical values.
It seems that you have tried to use this line of code: funcnew01=z^5+z^3-pi; to define a general function on z. Then you try t...

18일 전 | 1

| 수락됨

답변 있음
Compute the summation of all elements square of matrix
This looks like homework. In the future, please listen to James Tursa's advice, and post what you have tried, be specific about...

19일 전 | 0

답변 있음
Why is the (second) if statement in the for loop not working?
I don't know if this is perfectly correct, but it is certainly closer: Where you have i_Last(i) = Faktor*(i_0+(i_Amp*(1-exp(-(...

23일 전 | 0

| 수락됨

답변 있음
How can I extract numbers from a column in a matrix dependent on a number in another column ?
If your matrix is A, then output = log(A(A(:,4)==2,9)); In case it is not obvious what that one line of code is going, work fr...

23일 전 | 1

| 수락됨

답변 있음
Different machine precision for scalars and vectors?
If you don't have a specific reason to be using a for loop here, why not also teach them canonical use of vectorized calculation...

24일 전 | 1

답변 있음
Shade the encircled area
Combining your new code that aligns the values of t (but not using your attempt at creating the patch), and the same basic idea ...

24일 전 | 1

답변 있음
How can I create a scatterplot matrix?
Here is one way: T = readtable('Stress_Reactivity.xlsx'); figure gscatter(T.cort_3,T.diastolic_3,T.condition) I recommend ...

25일 전 | 0

답변 있음
Saving a m file
Are you using the MATLAB editor? On the editor tab, there is an icon for saving the file you are editing.

25일 전 | 0

답변 있음
Julian day to date
Here is one way: dateTable = readtable('KALAMARIA_2007.xlsx','Range','C:D'); julianDate = datetime(dateTable.YEAR,1,dateTabl...

25일 전 | 0

답변 있음
How to I find X unique combinations (order doesn't matter) of X numbers within an array of X numbers.
There's probably a more efficient way, since I effectively first find all combinations, but I think this does what you want, in ...

26일 전 | 1

Load more