Community Profile

the cyclist

Last seen: 1일 전
4,330 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 배지

모두 보기

참여 게시물
보기 기준

답변 있음
Very confused about MLE
Let's step back to the big conceptual picture. The mle function is estimating the most likely parameters for a distribution of s...

2일 전 | 2

답변 있음
How to show the plot with the highest value?
plot(h,max(abs(T1),abs(T2)))

2일 전 | 0

답변 있음
how to plot only one datapoint at a time with a 1 second delay from a dataset
Here is one way: TestPoints=[1 4 6;2 1 4;3 2 3;4 1 5;5 3 4;6 1 6;7 2 6;8 2 6]; figure for nr = 1:size(TestPoints,1) pl...

3일 전 | 0

| 수락됨

답변 있음
how to make intervals in a bar graph
Here is one way: w = 42.5 : 5.0 : 62.5; n = [4 12 13 6 5]; bar(w,n,'BarWidth',1) FYI, if you have the underlying ind...

3일 전 | 0

답변 있음
How to get a random vector whose elements arrangement is the same as that of my desired vector
Do you want something like this, which adds some random "noise" around the elements of u? u = [3 1 5 105 155 50]; m = 10; n...

24일 전 | 0

답변 있음
Error using plot Not enough input arguments.
If you take a look at the documentation for the plot function, you will see that it cannot take cell arrays as input. I'm not e...

27일 전 | 0

답변 있음
shuffle indexes when sorting matrix
One way that springs to mind is to add a small, random "jitter" to the values in the image. The jitter magnitude should be small...

29일 전 | 1

| 수락됨

답변 있음
How to suppress this error?
Two thoughts: First: Are you certain you have the correct warning? After you run your code that gives the warning, what is the ...

29일 전 | 0

답변 있음
Dot indexing is not supported for variables of this type???
Complete guess here. Are you simply trying to multiply the two variables? If so, then E(i).*tx(rr-1) Just using a dot, by itse...

30일 전 | 0

답변 있음
How to interpret entries in documentation's left pane
In that left-hand pane, the following pages are at the same "level of the documentation hierarchy": Get Started with MATLAB Com...

약 1달 전 | 1

답변 있음
Probability of Combinations Occurring
By "unique combinations", I assume you mean unique rows. Here is one way: % Example dataset. (Use your data instead.) x = [7 ...

약 1달 전 | 0

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

약 1달 전 | 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...

약 1달 전 | 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...

약 1달 전 | 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, ...

약 1달 전 | 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;...

약 1달 전 | 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...

약 1달 전 | 1

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

약 1달 전 | 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...

약 1달 전 | 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.

약 1달 전 | 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>...

약 1달 전 | 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...

약 1달 전 | 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...

약 1달 전 | 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...

약 1달 전 | 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...

약 1달 전 | 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...

약 2달 전 | 0

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

약 2달 전 | 1

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

약 2달 전 | 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...

약 2달 전 | 0