photo

balsip


Attivo dal 2015

Followers: 0   Following: 0

Statistica

  • Thankful Level 4

Visualizza badge

Feeds

Visto da

Domanda


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...

circa 7 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre 7 anni fa | 2 risposte | 0

2

risposte

Domanda


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...

oltre 7 anni fa | 2 risposte | 2

2

risposte

Domanda


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...

oltre 7 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre 7 anni fa | 2 risposte | 1

2

risposte

Domanda


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...

oltre 7 anni fa | 0 risposte | 2

0

risposte

Domanda


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...

oltre 7 anni fa | 1 risposta | 0

1

risposta

Domanda


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 ...

oltre 7 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre 7 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 8 anni fa | 2 risposte | 0

2

risposte

Domanda


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...

quasi 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

quasi 8 anni fa | 2 risposte | 0

2

risposte

Domanda


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...

quasi 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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, ...

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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 ("...

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

circa 8 anni fa | 3 risposte | 0

3

risposte

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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 ...

oltre 8 anni fa | 2 risposte | 0

2

risposte

Domanda


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...

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


"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...

circa 9 anni fa | 1 risposta | 0

1

risposta