Community Profile

photo

balsip


2015년부터 활동

Followers: 0   Following: 0

통계

  • Thankful Level 4

배지 보기

Feeds

보기 기준

질문


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

6년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 7년 전 | 답변 수: 2 | 0

2

답변

질문


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

거의 7년 전 | 답변 수: 2 | 2

2

답변

질문


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

거의 7년 전 | 답변 수: 0 | 0

0

답변

질문


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

거의 7년 전 | 답변 수: 2 | 1

2

답변

질문


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

거의 7년 전 | 답변 수: 0 | 2

0

답변

질문


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

거의 7년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 7년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 7년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 7년 전 | 답변 수: 2 | 0

2

답변

질문


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

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

7년 초과 전 | 답변 수: 2 | 0

2

답변

질문


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

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

7년 초과 전 | 답변 수: 3 | 0

3

답변

질문


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

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 2 | 0

2

답변

질문


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

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

8년 초과 전 | 답변 수: 1 | 0

1

답변