Question

Create an annotation into a plot
Hello, When i create an annotation into a plot to show me a specific value that I have previously calculated, in the plot it ...

1 year ago | 1 answer | 0

### 1

Question

Save a plot from a function in a structure and save the structure
Hi everyone. I created a function to perform pca calculations and to plot some specific plots, like loadings and scores. t...

1 year ago | 1 answer | 0

### 1

Question

Xlabel & Ylabel just in 1 line
Hi, My goal is to label Xaxis and Yaxis in just one line rather in two, that is what i get. my xlabel and ylabel are combi...

1 year ago | 1 answer | 0

### 1

Question

How to create an array with the same letter but different number
Hi, How can I create an array or cell, something like Variable = {'X1','X2','X3',...,'X43'}? when i give for example the len...

1 year ago | 2 answers | 0

### 2

Question

how can i perform the calculation of the span at smoothing?
Hello, I have some doubts on how to select the span in order to smooth all my NaN values and values. For example, I got: ...

1 year ago | 0 answers | 0

### 0

Question

Fillmissing & Smooth LOESS span
Hi, I got my Data, matrix X. For column 2 for example, I got 4 sequences of NaN values. Instead of fillmissing by movmean all...

1 year ago | 0 answers | 0

### 0

Question

Find the begining and ending on nan sequence and store
Hi, A = [7 9;NaN 9; NaN NaN; 4 NaN; 6 7;7 9;NaN 9; NaN NaN; 4 NaN; 6 7] In both columns, i got 2 sequences of NaN's of l...

1 year ago | 1 answer | 0

### 1

Question

XtickLabels on plots or scatters
Hello, I got a cell A = {'A','B','C'} and B = [3, 6, 9] my objective is to plot the values of X, with Xticklabel of A. I ...

1 year ago | 1 answer | 0

### 1

Question

Index of NaN Values
Hello, My objective is to know the index of NaN values per column. y = [1,2;NaN,4;5,NaN;7,8;9,NaN] idx = isnan(y) for ...

1 year ago | 1 answer | 0

### 1

Question

Drew a circle for a specific point in my plot
Hi, My objective is how to draw a circle for the min(PRESS). I wrote the following code for an ellipse, but I had to adjust t...

1 year ago | 1 answer | 0

### 1

Question

PCA pre-treatment: Centering or AutoScaling?
Hello, My question is not related with coding, just more asking for an opinion on what approach to make before using PCA: cen...

1 year ago | 0 answers | 0

### 0

Evaluation Criteria for Missing Data Imputation Techniques
I can't really make a subset, because all variables have missing data. But I found an article when they do the residues from X(w...

1 year ago | 0

Question

Evaluation Criteria for Missing Data Imputation Techniques
Hello, I have 5 methods for missing data imputation, since my original data set, has missing values due to the fact that is i...

1 year ago | 2 answers | 0

### 2

Question

Colormap setting the colors i want
Hello, So I discovered Colormap, and I want to draw a Color map of a matrix A I got that has ranges from 0 to 1. But I don't w...

1 year ago | 3 answers | 0

### 3

Question

Results of PCA function
Hello, I got some trouble understanding why I get a different result than the PCA function that is incorporated on Matlab. I h...

1 year ago | 1 answer | 0

### 1

Question

Interpretation of the p-values
Hello, So I used the corr function on my matrix A that is 5x4, A = 0.1576 0.1419 0.6557 0.7577 0....

1 year ago | 1 answer | 0

### 1

Question

Error in the specification of the window when using movmad
Hello, I got a matrix called "A" [nxm], where n is the number of observations and m is the number of variables. I want to ...

1 year ago | 1 answer | 0

### 1

Question

I want my function to ignore some inputs
Hello, I made a function called *plotgeral* that makes plots what I want with the format that I desire. the 1st line of the...

1 year ago | 0 answers | 0

### 0

Question

Fill a specific area of the plot with Diagonal Lines, or Vertical Lines
Hello, My objective is to produce within a range, diagonal lines or horizontal lines instead of just filling the all space wi...

1 year ago | 0 answers | 0

### 0

Question

How to get the maximum consecutive NaNs for each column
Hello, So i got a matrix A with 2 columns and 10 rows for example, with numbers and NaN's: A = 1 2 3 ...

1 year ago | 1 answer | 0

### 1

Question

Movmad does it consider the constant 1.4826?
Hello, just to make sure I understood it right. the built-in function of matlab called Movmad, just makes the median { abs ...

1 year ago | 1 answer | 0

### 1

Question

Why is the code of movmedian not available
Hello, Why is that the code of movmedian not available, and the code of median is? Thanks

1 year ago | 1 answer | 0

### 1

Solved

Getting the indices from a matrice
Getting the indices from a matrice. Inspired by Problem 645. Getting the indices from a vector by the great Doug Hull. Given a...

1 year ago

Solved

First non-zero element in each column
For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero ...

1 year ago

Solved

Getting logical indexes
This is a basic MATLAB operation. It is for instructional purposes. --- Logical indexing works like this. thresh = 4...

1 year ago

Solved

Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

1 year ago

Solved

Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

1 year ago

Solved

Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

1 year ago

Solved

Integer Sequence - II : New Fibonacci
Crack the following Integer Sequence. (Hints : It has been obtained from original Fibonacci Sequence and all the terms are also ...

1 year ago

Solved

Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

1 year ago