Community Profile

photo

balsip


Active since 2015

Followers: 0   Following: 0

Statistics

  • Thankful Level 4

View badges

Feeds

View by

Question


nanmean returns -Inf
Vector A is 7627x1 vector with 150 values, 10 of which are negative, and the rest are NaNs. Calling nanmedian(A) returns a re...

mer än 6 år ago | 1 answer | 0

1

answer

Question


Using surf to compare three vectors
I'd like to compare three vectors graphically, and I think surf is the function to use. In exploring surf, I can't wrap my he...

nästan 7 år ago | 2 answers | 0

2

answers

Question


Obtaining slope from fitlm results
With results from fitlm, how does one disentangle the linear regression's slope? I'm simply trying to plot the regression over t...

nästan 7 år ago | 2 answers | 2

2

answers

Question


Using and Reading PCA Statistical Results
Using pca() with a 7627x17 matrix of variables (columns = variables, rows = observations), I am outputting the coeff and explain...

nästan 7 år ago | 0 answers | 0

0

answers

Question


Add Column and Row Labels to Matrix
I'd like to add string data column and row labels (aka "headers") to a 5x13 matrix. I've expanded the matrix to 6x14 with NaNs t...

nästan 7 år ago | 2 answers | 1

2

answers

Question


Reading Robustfit Stats Results
Using robustfit, I'm looking to find the R^2 and p-value for the resulting linear regression. I'm using two vectors, and returni...

nästan 7 år ago | 0 answers | 2

0

answers

Question


How to average sequential chunks of one vector based on the criteria of another
Good Afternoon, Working with a time vector, *EChr* (values 0-23.5, in 0.5 increments), and another vector, *A*, I need to ave...

nästan 7 år ago | 1 answer | 0

1

answer

Question


In for loop, add same fractional value to all non-integers in the vector
Hello, In vector A, I have values that are either integers or fractional values (all are X.3000). I'd like to add 0.2 to all ...

nästan 7 år ago | 1 answer | 0

1

answer

Question


In a for loop, how do I combine rows when values are equal?
I'm having trouble with the syntax of a for loop. In a vector, A, rows sometimes repeat values in succession. What I'd like to d...

nästan 7 år ago | 1 answer | 0

1

answer

Question


How do you return the value of one vector at specified value of another vector
I want to return the value of a vector A at the specified value of vector B. So, when vector B = 805, I'd like code to return...

ungefär 7 år ago | 2 answers | 0

2

answers

Question


Include a string variable for a plot title in function prompt
Hello, I have a plot function that includes a title () call. In the function's prompt, I would like to provide not only t...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Use a character variable for a title in a plot function
Hello, I would like to use a pre-defined variable within the title of a plot function. The code that doesn't work is: Sit...

mer än 7 år ago | 2 answers | 0

2

answers

Question


Limit plot's x-axis to number of rows in a specified vector
Hello All, I've got an easy one for you: I want to limit the x-axis on a plot from 0 to the total number of rows in the "A...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Adding Rows with Specific Values to Existing Variables
Hello, I have a 7x1 variable ("X1") to which I need to add a row at the beginning (cell value = 0) and a row at the end (cell...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Solving 7x7 Matrix Returns Very Long Fractions
Hello, I'm solving a 7x7 matrix. After inputting the A matrix and B vector and solving, the returned solutions for X are very, ...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Applying the Consolidator function in a loop over a specified interval of a vector
Matlab beginner here... I have a time series ("d41", 3335 elements). d41's values correspond with integer-hours of the day ("...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Solution to "Subscripted assignment dimension mismatch" error
Hello, I have a loop in which I'm applying the Consolidator function. The Consolidator line contains the error, and naming the...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Step loop forward 10 units of a vector every iteration
*** UPDATE: To help clarify, I'm zooming out on my original problem. I have a long timeseries (OCS_d41) of 1/Hz data along a ti...

mer än 7 år ago | 3 answers | 0

3

answers

Question


Using Consolidator with Zeros
Using <https://www.mathworks.com/matlabcentral/fileexchange/8354-consolidator Consolidator> with a vector comprised of whole num...

mer än 7 år ago | 1 answer | 0

1

answer

Question


How can I subtract vectors of different lengths?
Hello, I have two vectors of different lengths: * LargerVec (length=7012) * SmallerVec (length=7004) The best way I've...

mer än 7 år ago | 1 answer | 0

1

answer

Question


How do I populate a column with a constant value?
I am trying to populate a column in a newly created empty variable (ConstantVector) with a constant value for the column length ...

nästan 8 år ago | 2 answers | 0

2

answers

Question


How can I add sequential integers to .mat filename?
I have the following code running within a for loop, which appends a random integer to a .mat filename because it's using "randi...

mer än 8 år ago | 1 answer | 0

1

answer

Question


How can I make data points in one variable NaN according to another time-based variable?
I have one variable (X) for which I need to remove data (convert to NaN) for a ten-minute time span when another variable (Y) sw...

mer än 8 år ago | 1 answer | 0

1

answer

Question


"randi(100)" Outputting Characters Instead of Integers
In line 2 below, "randi(100)" is returning characters, including black spaces, instead of integers. What code is converting "ran...

mer än 8 år ago | 1 answer | 0

1

answer