Frage

How to center the bars of the histogram over the elements of the input array?

How to center the bars of the histogram at the elements of the input array? I mean, in the following example I would like that ...

7 Monate vor | 2 Antworten | 0

Frage

What is the mechanism or math behind the function islocalmax(A)?

What is the mechanism or math behind the function islocalmax(A)? I just refer to the the basic islocalmax(A) function, without ...

7 Monate vor | 2 Antworten | 0

Frage

Why does exportgraphics not fully work, when using yyaxis?

Why does exportgraphics not fully work, when using yyaxis? This is my minimum working example: clear all;clc;close all; % ...

8 Monate vor | 1 Antwort | 0

Beantwortet

Change properties in gscatter, based on the group label

Thanks both @Dyuman Joshi and @dpb! By mixing the @dpb and the @Cris LaPierre answers (that one from @Cris LaPierre is in Chan...

Change properties in gscatter, based on the group label

Thanks both @Dyuman Joshi and @dpb! By mixing the @dpb and the @Cris LaPierre answers (that one from @Cris LaPierre is in Chan...

8 Monate vor | 0

Frage

Change properties in gscatter, based on the group label

How to set some specific properties for a specific group (i.e. marker, markersize, one specific color), let's say for group labe...

8 Monate vor | 3 Antworten | 0

Frage

How to adjust the (absolute) width of bars to 1 unit in a bar plot?

How to adjust the (absolute) width of bars to 1 unit in a bar plot? In the following example, the bars are larger than 1 unit: ...

8 Monate vor | 1 Antwort | 0

Frage

How to display a few xticklabels from a set of selected xticks?

How to display a few xticklabels, like [4, 53] in the following example, from a set of selected xticks? selected_ticks = [2 3 4...

8 Monate vor | 1 Antwort | 0

Frage

How to change position of both ylabels in yyaxis left, within a subplot enrivonment?

How to change position of both ylabels in yyaxis left, within a subplot enrivonment? figure(); for i = [1 3 5] ax1 = sub...

8 Monate vor | 1 Antwort | 0

Frage

Change colors (of groups) in scatter plot

The following matrix contains around 80 rows, representing 2-dimensional points (each row corresponds to a point), and 3 columns...

8 Monate vor | 2 Antworten | 0

Frage

How to add pairs of graphs (generated through a function) to adjacent subplots?

How to add pairs of graphs (generated through a function) to adjacent subplots? The function "myfunction" produces two graphs, ...

8 Monate vor | 1 Antwort | 1

Frage

A compact way to replace zeros with Inf in a matrix

Would you be so nice to suggest me a more compact way to replace zeros with Inf in the following matrix? (maybe with just one li...

8 Monate vor | 5 Antworten | 0

Frage

Create a graph with several isolated nodes and a few links

Why I am not able to create a graph with several isolated nodes and a few links? s = [1 1 1]; t = [1 2 ...

8 Monate vor | 1 Antwort | 0

Frage

not correct output when using fprintf with multiple lines

Something is wrong here.. I need to associate the number of students to each class.. Any suggestion? fprintf('class %d: number ...

9 Monate vor | 1 Antwort | 0

Frage

The normalization of histcounts

I would like to get the probability density function (PDF) from an array of data A (contained in the attached "a.mat" file). If...

11 Monate vor | 2 Antworten | 0

Frage

Histogram normalisation: a question about terminology

Let's consider the histogram and histcounts functions, as in these two cases: num_bins = 30; % <-- note: I specify the "number ...

11 Monate vor | 1 Antwort | 0

Frage

A faster union of polyshapes

Do you know a faster way to achieve this union of polyshape objects? load('borders2.mat') n = length(a); warning('off','MATLA...

11 Monate vor | 1 Antwort | 0

Frage

Can I use the Matlab function called "dice" to compare two histograms (or discrete probability distributions)?

Can I use the Matlab function called "dice" (i.e. the "Sørensen-Dice similarity coefficient for image segmentation") to compare ...

11 Monate vor | 2 Antworten | 0

Beantwortet

Boundaries of a point cloud

Boundary extraction (identification and tracing) from point cloud data

Boundaries of a point cloud

Boundary extraction (identification and tracing) from point cloud data

11 Monate vor | 0

Frage

How to select, or filter, the external border/boundary in a set of (x,y)-points? [Part 2]

Hi, in a previous question, I asked about a method to obtain the external border from a set of points. I then tried to apply t...

11 Monate vor | 2 Antworten | 0

Frage

How to select, or filter, the external border/boundary in a set of (x,y)-points?

Given two or more set of points (please see attached, as example, two sets of points called "b1" and "b2", that are stored in "b...

12 Monate vor | 2 Antworten | 0

Frage

Show only a part of the yaxis

How can I show only a part of the yaxis (i.e. from zero to infinity), as shown in the right figure, here below? My desired o...

12 Monate vor | 1 Antwort | 0

Frage

Implement the "total variation distance" (TVD) in Matlab

I am trying to implement the Total variation distance of probability measures (TVD) in Matlab. Would it be correct to use the ...

12 Monate vor | 2 Antworten | 0

Beantwortet

The best approach to avoid the Kullback–Leibler divergence equal to infinite

So far, I found this theoretical argument, which partially solve my issue, but still, the infinite values remain when % if P_i ...

The best approach to avoid the Kullback–Leibler divergence equal to infinite

So far, I found this theoretical argument, which partially solve my issue, but still, the infinite values remain when % if P_i ...

12 Monate vor | 0

Frage

The best approach to avoid the Kullback–Leibler divergence equal to infinite

Given two discrete probability distributions P and Q, containing zero values in some bins, what is the best approach to avoid th...

12 Monate vor | 3 Antworten | 0

Frage

Similarity of histograms: interpretation of cosine and jaccard similarities with "pdist2"

I would like to assess the similarity between two "bin counts" (that I previously derived through the "histcounts" function), by...

12 Monate vor | 1 Antwort | 0

Beantwortet

How to use chi2gof within CUPID

I might have found a solution that makes sense to me and gives me what I would expect, even though I am not 100% sure it is corr...

How to use chi2gof within CUPID

I might have found a solution that makes sense to me and gives me what I would expect, even though I am not 100% sure it is corr...

12 Monate vor | 0

Frage

How to use chi2gof within CUPID

[The same question on the CUPID GitHub] Two examples of usage of the Matlab's "Chi-square goodness-of-fit test" (chi2gof) funct...

12 Monate vor | 2 Antworten | 0

Frage

In the chi-square test, how to calculate (the correct number of parameters and consequently) the correct number of degrees of freedom, without using the chi2gof function?

Question In the chi-square test, how to calculate (the correct number of parameters and consequently) the correct number of deg...

12 Monate vor | 1 Antwort | 0

Frage

Usage of chi2gof: how to derive the "expected" values from the fitting distribution to then use them as argument of chi2gof?

How to derive the "expected" values from the fitting distribution to then use them as argument of chi2gof? observed_data = expr...

12 Monate vor | 1 Antwort | 0

Frage

Usage of chi2gof

(A very silly question) From the chi2gof documentation I see that chi2gof takes 1 argument h = chi2gof(x) Since the chi-square...

12 Monate vor | 1 Antwort | 0