Community Profile

photo

the cyclist


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

すべて表示

貢献した分野
表示方法

回答済み
Graph the curve line
Use the plot3 command.

1日 前 | 0

回答済み
Cannot use datetime function on {'01 Nov 2019 14:39:50.365'}
s = '01 Nov 2019 14:39:50.365'; datetime(s,'InputFormat',"dd MMM yyyy HH:mm:ss.S")

4日 前 | 0

| 採用済み

質問


How to determine the x-axis positions of the bars in a grouped bar chart
Suppose I make the following bar chart: figure; bar([1 2],[3 4; 5 6]) How can I programatically find the x-axis locations of e...

10日 前 | 3 件の回答 | 0

3

回答

回答済み
fitting a dual exponential function using nlinfit
I made up some pretend data that looks a little bit like yours, and did your fit. Here is my code: % Make up some pretend data ...

10日 前 | 0

| 採用済み

回答済み
how to change the box width in boxplot?
You chose the "compact" plot style. Do you prefer this version, which is the default (non-compact)? Also, are you sure you ar...

16日 前 | 0

回答済み
Array indices must be positive integers or logical values
In this line: hfuncval(k) = hfuncval(k-1); in the first iteration of the for loop, k == 1, so you are attempting to access the...

16日 前 | 0

回答済み
How to specify histogram's x and y axis
You can use the xlim and ylim commands.

17日 前 | 1

| 採用済み

回答済み
Plotting estimates (fixed effects) of a linear mixed-model
I could find no mention in the documentation of the LinearMixedModel class that there is an equivalent object function or method...

17日 前 | 1

回答済み
how to convert to matlab from fortran
You could try f2matlab. It might not get you all the way to the final code you need, but it will probably help.

約1ヶ月 前 | 0

回答済み
using function to remove elements from a large matrix
idxToKeep = ismember(M(:,2),[1,2,3,11,12]); M = M(idxToKeep,:);

約1ヶ月 前 | 0

| 採用済み

回答済み
Creating all possible combination of 0 and 1 in 2D array
Did you mean you just want each possible unique row, rather than each possible unique matrix? justRows = dec2bin(0:2^m-1)-'0' ...

約1ヶ月 前 | 0

回答済み
Creating all possible combination of 0 and 1 in 2D array
% Example choice of m and n n = 2; m = 3; allCombos = reshape(dec2bin(0:2^(n*m)-1)-'0',n,m,[]); allCombos is a 3-dimension...

約1ヶ月 前 | 2

回答済み
how to rename and Copy Zip File from one location to another location
I think you should be able to first use the movefile command to rename the other file.

約1ヶ月 前 | 0

回答済み
Where is the Compliant Joint Toolbox ?
Let me Google that for you. Looks like it is here.

約1ヶ月 前 | 0

回答済み
Storing the results from a loop using tool box functions in a new matrix
I think instead of [lab] = xyz2lab(XYZ,'d65_64') using lab(col,:) = xyz2lab(XYZ,'d65_64') should do what you want

約1ヶ月 前 | 0

| 採用済み

回答済み
8 coin toss problem
If you have the Statistics and Machine Learning Toolbox, then v = binopdf(0:8,8,0.5)

約1ヶ月 前 | 0

回答済み
How large is the MATLAB Student R2019b download
In an admittedly quick search, I could not find this info specifically, but the System Requirements page might be helpful.

約1ヶ月 前 | 0

回答済み
How to find and replace stand alone values in a logical array
I think this does what you want: a(strfind([1 a 1],[1 0 1])) = 1; a(strfind([0 a 0],[0 1 0])) = 0;

約1ヶ月 前 | 2

回答済み
How to convert fraction form to decimal form?
I think you want to use the subs command.

約1ヶ月 前 | 0

回答済み
Setting array indices to a vector of values
You can use sub2ind command to convert the subscripted indices (xVal,yVal) into a single linear index into the array.

約1ヶ月 前 | 0

| 採用済み

回答済み
CAN I use matlab in two different computers
Yes, you can use it on up to four computers, according to this page. (Click on "Learn More".) You just need to download and act...

約1ヶ月 前 | 0

| 採用済み

回答済み
Subscript indices must either be real positive integers or logicals.
In this line: np = find(kp > 1.05 & kp <1.2); there are no values of kp that satisfy this condition, so np is empty. That car...

約2ヶ月 前 | 0

| 採用済み

回答済み
Multiplying a string with 1 or 0
Here is one way: c = ['A', repmat('+B',Check_B)]; Be aware that you are actually working with character arrays, not strings.

約2ヶ月 前 | 0

| 採用済み

回答済み
inserting vectors into another new vector
Here is another way: A = [7 17 27 35]; B = [13 22 30 31]; C = [A; [B nan(numel(A)-numel(B),1)]]; C = C(1:(numel(A)+numel(B...

約2ヶ月 前 | 1

回答済み
I keep getting the error "Array indices must be positive integers or logical values?"
In expressions like this one k2(x2(n,:)-x1(n,:)) MATLAB is trying to index into the variable k2. You need to put in the multip...

約2ヶ月 前 | 1

| 採用済み

回答済み
Making the Y-axis a scale of a specific variable
Here is one way: r = 7; m = 50; N = 50; x = rand(N,1); y = m*rand(N,1); figure plot(x,y,'.'); set(gca,'YTick',0:r:ma...

約2ヶ月 前 | 0

| 採用済み

回答済み
how to estimate the distribution of a random variable knowing the histogram?
Do you have the underlying data, or only the counts from each bin? Were you hoping to find a particular functional form (e.g. a...

約2ヶ月 前 | 0

回答済み
Index exceeds the number of array elements (0)
Everywhere that you wrote zeros(i:1) I think you meant zeros(i,1)

約2ヶ月 前 | 0

回答済み
Curve Fit data using FIT
I used nlinfit from the Statistics and Machine Learning Toolbox. Here is the code, and the resulting plot: xy = [ ... 1 317.3...

約2ヶ月 前 | 0

回答済み
Extracting certain values from a cell array with nth columns containing double arrays
mC = cellfun(@(x)max(x(:,3)),C)

約2ヶ月 前 | 0

| 採用済み

Load more