Community Profile

photo

the cyclist


Last seen: Today
4,279 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

모두 보기

참여 게시물
보기 기준

답변 있음
multivariable regression, known structure, calculate coefficients
If you have the Statistics and Machine Learning Toolbox, you should be able to use the fitnlm function.

6일 전 | 0

답변 있음
Error: Unable to perform assignment because the left and right sides have a different number of elements.
In this line S(i+1) = S(i) + (s1 + 2*s2 + 2*s3 + s4)/6; the variables s1, s2, s3, and s4 are all row vectors with 300 elements...

13일 전 | 0

답변 있음
Using cellfun and regexp question
I think this does what you want. storedSamplerates{1} = 'SAMPLERATE: 50000'; storedSamplerates{2} = 'samplerate:200000'; ...

14일 전 | 0

| 수락됨

답변 있음
select random numbers from a group
I think I understand at least part of your question. Do you have the Statistics and Machine Learning Toolbox? If so, then to se...

15일 전 | 0

답변 있음
error in multiplication of array by a number
Just a guess here. If you have x = [0.2204 0.1897] and then type 1000*x in the command window, it will display [220.4 189.7]...

17일 전 | 0

답변 있음
Take mean value when elements inside array "clump up"
Assuming that my guess about the correct output is correct, then the following should work. % Original (sorted) data a = [1; 1...

17일 전 | 0

| 수락됨

답변 있음
Running code and getting error about vector must be the same length
It's the subtle difference between these two lines of code: xAK_val = [xAK-.5, xAK + .5, xAK + .5, xAK -.5]; yAK_val = [yAK-.5...

19일 전 | 1

| 수락됨

답변 있음
Why is Matlab 2019B not using python 3.6?
The following worked for me, per instructions in the documentation for pyenv. First, I ran pyenv with no argument, which told...

25일 전 | 0

답변 있음
Rectangular matrix manipulation with triu and tril
This will use the largest square matrix from the bottom right corner, as input to triu: d = min(size(A))-1; triu(A(end-d:end,e...

26일 전 | 1

답변 있음
Creating subvectors from a vector
reshape(X,[],4) See the documentation for reshape for details. The empty square brackets there indicate that MATLAB should infe...

27일 전 | 1

| 수락됨

답변 있음
How to convert a cell to matrix?
Here is one straightforward way: % Original data A={[1 3 4]; [2 5 6 4]; [2 6 8 9 5 6]; [3 6 5 4 1]}; %%%%%% Con...

28일 전 | 1

답변 있음
How to change two variables in one loop?
There are many things about your question that I don't fully understand. The least important is whether you meant the loop to go...

약 1달 전 | 0

답변 있음
Error using cd, Cannot CD
This code works for me when mfilename is a file that exists in my path, but otherwise it gives that error. So, my guess is that ...

약 1달 전 | 0

| 수락됨

답변 있음
Add new row to String Array.
You can preallocate memory for the entire string array with str = strings(200000,1); and then fill row-by-row rather than appe...

약 1달 전 | 1

| 수락됨

답변 있음
connect matlab to the cloud
Did you try to google "matlab amazon azure"? When I did, this link about using MATLAB in the Cloud was the first hit, and it has...

약 1달 전 | 0

답변 있음
Difference between errorbar and errorbarxy (function)
See this example from the documentation for errorbar.

약 1달 전 | 0

| 수락됨

답변 있음
Creating Global Stiffness matrix
If I've understood correctly, then K = zeros(8); vec1 = [1 2 3 4 7 8]; K(vec1,vec1) = K(vec1,vec1) + k1; vec2 = [5 6 7 8...

약 1달 전 | 1

답변 있음
Average of a column without including a certain number
There is no specific function for this, but it is easy to do without a loop: A = [6; 3; 6; 4]; N = 6; mean_A_without_N = mean...

약 1달 전 | 1

답변 있음
customize legend: extra legend entry
"The first item doesn't belong to any graph" immediately indicates to me that this text does not belong in the legend, for two r...

약 1달 전 | 0

| 수락됨

답변 있음
How to set "dbstop if error" only to stop in my code
I don't think that that is possible. Are you aware of the "function stack" capability in the user interface? I show a screensho...

약 1달 전 | 0

| 수락됨

답변 있음
Repeated Measures ANOVA Matlab
If you have the Statistics and Machine Learning Toolbox, you can use the anovan function. In particular it looks like this examp...

약 1달 전 | 0

답변 있음
How do I calculate percentage or frequency and display it on a bar plot?
Because you have the typo rate=(frequency/total):100; instead of rate=(frequency/total)*100;

약 1달 전 | 0

답변 있음
Symbols instead of line with plot
It looks like it might be because k_ is only a single value, the last one of the loop. Maybe you wanted k_(i) = k; in the lo...

약 1달 전 | 0

답변 있음
Help Using readmatrix or readcell
According to the documentation, there is no two-output syntax for the readmatrix command. You'll need to get a deeper understand...

약 1달 전 | 0

| 수락됨

답변 있음
How to process multiple Excel files using the same Matlab code for each
If you can make a cell array of the filenames, eg. filenames = {'this file.csv','that file.csv','oh this file too.csv'} then y...

약 1달 전 | 0

| 수락됨

답변 있음
Index exceed number of array elements(1)
In your function, the input is a character array, but you convert it to a string. The expression Testdate(7:10) would have pul...

약 1달 전 | 0

| 수락됨

답변 있음
How can I set the y tick interval (to powers of 10) on a log scale?
Like this? N = 500; x = sort(1e3*rand(N,1)); y = sort(1e6*rand(N,1)); figure loglog(x,y) set(gca,'XLim',[1e1 1e4],'XTick...

약 2달 전 | 0

| 수락됨

답변 있음
Is it possible to set the size of the gap between grouped bars in a bar graph?
Another option would be to abandon using grouped bars in a single call to bar(), and instead plot the two sets of bars with two ...

약 2달 전 | 0

| 수락됨

답변 있음
Is it possible to set the size of the gap between grouped bars in a bar graph?
This question and the answer from MATLAB staff suggest that it is not possible using the built-in bar function. However, there ...

약 2달 전 | 0

답변 있음
How to plot a line over a specific interval?
Can you upload the data? Specifically, it is unclear to me what sort of data type g is. Instead of plotting x, you'll want to d...

약 2달 전 | 0

| 수락됨

Load more