Domanda

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

circa 4 anni fa | 2 risposte | 0

Risposto

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

circa 4 anni fa | 0

| accettato

Domanda

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

circa 4 anni fa | 2 risposte | 0

Domanda

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]';...

circa 4 anni fa | 1 risposta | 0

Domanda

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

circa 4 anni fa | 3 risposte | 0

Domanda

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

circa 4 anni fa | 1 risposta | 0

Domanda

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

circa 4 anni fa | 1 risposta | 0

Domanda

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

circa 4 anni fa | 1 risposta | 0

Domanda

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

circa 4 anni fa | 2 risposte | 0

Domanda

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

circa 4 anni fa | 0 risposte | 0

Domanda

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

circa 4 anni fa | 0 risposte | 0

Domanda

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

circa 4 anni fa | 1 risposta | 0

Domanda

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

circa 4 anni fa | 1 risposta | 0

Domanda

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

oltre 4 anni fa | 1 risposta | 0

Domanda

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

oltre 4 anni fa | 1 risposta | 0

Domanda

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

oltre 4 anni fa | 0 risposte | 0

Risposto

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

oltre 4 anni fa | 0

Domanda

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

oltre 4 anni fa | 2 risposte | 0

Domanda

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

oltre 4 anni fa | 3 risposte | 1

Domanda

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

oltre 4 anni fa | 1 risposta | 0

Domanda

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

oltre 4 anni fa | 1 risposta | 0

Domanda

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

oltre 4 anni fa | 1 risposta | 0

Domanda

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

oltre 4 anni fa | 0 risposte | 0

Domanda

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

oltre 4 anni fa | 0 risposte | 0

Domanda

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

oltre 4 anni fa | 1 risposta | 0

Domanda

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

oltre 4 anni fa | 1 risposta | 0

Domanda

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

oltre 4 anni fa | 1 risposta | 0

Risolto

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

oltre 4 anni fa

Risolto

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

oltre 4 anni fa

Risolto

Getting logical indexes

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

oltre 4 anni fa