Question

Histogram with values above the bars

Hello, I got data with values form 90 to 100, and i can have decimal values like 90.4 95.3. My goal is to create an histogram w...

3 years ago | 2 answers | 0

Answered

Plot blocks of points with a specific color

This is what I did to solve my question: from a generic X = [1:25]'; Y = [1:25]'; I want to plot each number of "rows" to a ...

Plot blocks of points with a specific color

This is what I did to solve my question: from a generic X = [1:25]'; Y = [1:25]'; I want to plot each number of "rows" to a ...

3 years ago | 0

| accepted

Question

Plot blocks of points with a specific color

Hi, I got these points and I want to colour every 4 points with a specific color: x = [ 1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 ...

3 years ago | 2 answers | 0

Question

Want to create colors depending on the number of columns i got in my X

Hello, i want to plot each column, and i want to associate each column with a color but automaticly. X = [1:26]'; Y = [1:26]';...

3 years ago | 1 answer | 0

Question

Resize a matrix into another with different size

Hello, i got a matrix X and I want to transform X into a matrix rows x collumns, in this case into a 4 by 7 matrix. I used resha...

3 years ago | 3 answers | 0

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

3 years ago | 1 answer | 0

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

3 years ago | 1 answer | 0

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

3 years ago | 1 answer | 0

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

3 years ago | 2 answers | 0

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

3 years ago | 0 answers | 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...

3 years ago | 0 answers | 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...

3 years ago | 1 answer | 0

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

3 years ago | 1 answer | 0

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

3 years ago | 1 answer | 0

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

3 years ago | 1 answer | 0

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

3 years ago | 0 answers | 0

Answered

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

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

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

3 years ago | 2 answers | 0

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

3 years ago | 3 answers | 1

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

3 years ago | 1 answer | 0

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

3 years ago | 1 answer | 0

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

3 years ago | 1 answer | 0

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

3 years ago | 0 answers | 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...

3 years ago | 0 answers | 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 ...

3 years ago | 1 answer | 0

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

3 years ago | 1 answer | 0

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

3 years ago | 1 answer | 0

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

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

3 years ago

Solved

Getting logical indexes

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

3 years ago