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.

2日 前 | 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...

9日 前 | 0

回答済み
Using cellfun and regexp question
I think this does what you want. storedSamplerates{1} = 'SAMPLERATE: 50000'; storedSamplerates{2} = 'samplerate:200000'; ...

11日 前 | 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...

12日 前 | 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]...

14日 前 | 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...

14日 前 | 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...

15日 前 | 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...

22日 前 | 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...

22日 前 | 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...

24日 前 | 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...

25日 前 | 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...

28日 前 | 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 ...

29日 前 | 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...

29日 前 | 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...

29日 前 | 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...

約1ヶ月 前 | 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 ...

約1ヶ月 前 | 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 ...

約1ヶ月 前 | 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...

約1ヶ月 前 | 0

| 採用済み

Load more