Community Profile

photo

the cyclist


Last seen: Today Active since 2011

Obsessive runner. Flâneur. 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.)

Statistics

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

View badges

Content Feed

Answered
Issue using Mann-Kendall Test
You have NaT values in your timetable. When I removed them with FM1(isnat(FM1.Var2),:) = []; the code ran to completion.

en dag ago | 0

| accepted

Answered
Is there a way to overlay one mask onto another?
I don't really do image processing, but I think this straightforwardly answers your question, using only base MATLAB commands. T...

en dag ago | 0

Answered
Plotting different figures by means of for loop
I believe this does what you are trying to do: % Create some fake data [Use your real data instead] m = 5; C = cell(3,4); C ...

3 dagar ago | 0

Answered
matlab not plotting graph
You are using a matrix division operation rather than an elementwise division. So you need, h = [2,4,6,8,10]; x = 10.1; y = 2...

3 dagar ago | 0

Answered
Numerical function invalid expression
You need the explicit multiplication sign 2*x: h=@(x)exp(2*x).*tan(x)./x.^3 You might also want to put in some parentheses ins...

4 dagar ago | 1

| accepted

Answered
Find indices in 2D Matrix
Is this what you mean? (I made the matrices smaller, just to show the result.) A = rand(5,2)>.3; B = rand(5,2); newmatrix =...

7 dagar ago | 0

| accepted

Answered
Efficient way to multiply a vector of size (Nx,1) with a matrix of size (Nx+1,Nx+1)
If you permute gamma to be a vector along the dimension 3, then you can multiply it by identy, and the result will be a 33x33x32...

8 dagar ago | 1

| accepted

Answered
Meaning of box plot notches
The value 1.57 is not something that "MATLAB chose", but rather is directly out of the original research paper that introduced t...

11 dagar ago | 0

Answered
Regression/ Ordinary Least squares on a custom equation
It's definitely an interesting modeling problem. Here is a plot of your data, where I used errorbar to plot the mean and error o...

11 dagar ago | 0

Answered
Element wise cell division
Your code is producing the correct result. You could also have used the cellfun() function to do this operation in one line: A ...

12 dagar ago | 2

| accepted

Answered
how do I find at which sample on the x-axis I have maximum value of y-axis?
If you use the two-output syntax for the max() function, the second output is the index of the maximum: clear all clc set(0,'...

14 dagar ago | 0

| accepted

Answered
How to plot successive rows of a table when value is true
This line of code for ii=1:ra-1 is looping over all rows except for the last one, so it never "sees" the last row. Therefore, ...

15 dagar ago | 0

| accepted

Answered
How to create bar graph with portions (multi-dimensional)?
This example from the documentation shows exactly how to do it. y = [2 2 3; 2 5 6; 2 8 9; 2 11 12]; ba...

16 dagar ago | 0

Answered
How to obtain confidence level and coefficient of determination?
tsreg is not a MathWorks function. Are you using this code from the File Exchange? Obviously, the author of that code has not p...

29 dagar ago | 0

| accepted

Answered
Inverse of a cell array
Do you mean you want the reciprocal of each element of each matrix? (That is not what the inverse of a matrix means.) If so, th...

ungefär en månad ago | 1

| accepted

Answered
How to rearrenge function with inputs given?
Option 1 You could do something that is GUI-driven, where the user enters values into textboxes that you have labeled as accel...

ungefär en månad ago | 0

Answered
could anyone help me how to generate some of the similar values using rng
Here is a new answer, based on the comments on the other answers. numberTotal = 8; % You can change this to 1000 numberRepeat...

ungefär en månad ago | 0

| accepted

Answered
could anyone help me how to generate some of the similar values using rng
In response to the comment in my other answer, here is a pretty simple way to do it: numberRep = 3; % You can change this to 80...

ungefär en månad ago | 0

Answered
could anyone help me how to generate some of the similar values using rng
Is this what you mean? rng default % for reproducibility, if desired [repmat(rand(),1,3) rand(1,2)]

ungefär en månad ago | 0

Answered
New variables after computing Principal Components Analysis
Yes, the output score is the observed values of the variables in the principal coordinate axes. I wrote a detailed answer to th...

ungefär en månad ago | 0

| accepted

Answered
How do I integrate the triple integral square root of 4-x^2-y^2-z^2 from 0,1,0,1,0,1?
f = @(x,y,z) sqrt(4 - x.^2 - y.^2 - z.^2); q = integral3(f,0,1,0,1,0,1)

ungefär en månad ago | 0

Answered
Gaussian Curve Plotting Issues
Can you be more specific what you mean by "the current gaussian curve is very wrong"? Do you mean with the lines connecting all ...

ungefär en månad ago | 0

Answered
I need to calculate invers of a non square large symbolic matrix
Non-square matrices do not have inverses. You can calculate the pseudoinverse using pinv.

ungefär en månad ago | 0

Answered
Implementation of connected components analysis using matlab
Did you think to google "matlab connected components"? Literally the first hit is this MATLAB function. I hope that helps.

ungefär en månad ago | 0

| accepted

Answered
Problem by using str2double with csv file
The issue is that your input file uses commas as the decimal separator, rather than a period ("decimal point"). This means that ...

ungefär en månad ago | 0

Answered
Having issues producing bar chart
I assume you got error from this line: xlabel(Animal ID''s') You have mismatched single quotes, i.e. "unbalanced delimiters", ...

ungefär 2 månader ago | 0

| accepted

Answered
How to sort a cell array based on the first row?
Out of curiosity, is there some reason you are using a cell array rather than a numeric array to store these numeric data? % Or...

ungefär 2 månader ago | 0

| accepted

Answered
How can a 4 element array index pull stored string values?
Can you upload examples of your variables fourElementVector and HexData, in a MAT file? This would be helpful. But it seems fro...

ungefär 2 månader ago | 1

Answered
How to select all rows of a given column in a cell array
Your syntax: T{1}{:,4} would work if the contents of T{1} were also a cell array, since you would use the curly brackets to ac...

ungefär 2 månader ago | 1

| accepted

Answered
Defining a fitline only up to a specific x-tick
It should be straightforward, but it is not possible to deduce from your code how to do it. In particular, since none of your va...

ungefär 2 månader ago | 1

| accepted

Load more