Domanda


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

6 mesi fa | 1 risposta | 0

1

risposta

Domanda


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

7 mesi fa | 1 risposta | 0

1

risposta

Domanda


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

9 mesi fa | 2 risposte | 0

2

risposte

Domanda


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

10 mesi fa | 1 risposta | 0

1

risposta

Domanda


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

10 mesi fa | 1 risposta | 0

1

risposta

Domanda


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

10 mesi fa | 2 risposte | 0

2

risposte

Risposto
Boundaries of a point cloud
Boundary extraction (identification and tracing) from point cloud data

10 mesi fa | 0

Domanda


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

10 mesi fa | 2 risposte | 0

2

risposte

Domanda


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

10 mesi fa | 2 risposte | 0

2

risposte

Domanda


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

10 mesi fa | 1 risposta | 0

1

risposta

Domanda


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

10 mesi fa | 2 risposte | 0

2

risposte

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

10 mesi fa | 0

Domanda


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

10 mesi fa | 3 risposte | 0

3

risposte

Domanda


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

10 mesi fa | 1 risposta | 0

1

risposta

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

10 mesi fa | 0

Domanda


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

10 mesi fa | 2 risposte | 0

2

risposte

Domanda


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

10 mesi fa | 1 risposta | 0

1

risposta

Domanda


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

10 mesi fa | 1 risposta | 0

1

risposta

Domanda


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

10 mesi fa | 1 risposta | 0

1

risposta

Domanda


Goodness-of-Fit for a best-fitting distribution? (by using CUPID)
By using CUPID, how to assess the Goodness-of-Fit for this best-fitting distribution? addpath('.../Cupid-master') pd = makedis...

10 mesi fa | 1 risposta | 0

1

risposta

Domanda


Fit a statistical distribution to truncated data
I have a "truncated dataset" and I would need to infer the distribution that most likely fits the data. Even though I have a "tr...

10 mesi fa | 3 risposte | 0

3

risposte

Domanda


Does fitdist work for fitting a distribution to truncated data?
Does fitdist work for fitting a distribution to truncated data? Indeed, it looks like that the mean of the the fitting distrib...

10 mesi fa | 2 risposte | 0

2

risposte

Domanda


Evaluate the "goodness of fit" of a distribution fitting, when using the function "fitdist"
When I use the function fitdist to find the best distribution fitting, I would like to measure or assess the goodness of fitting...

11 mesi fa | 0 risposte | 0

0

risposte

Risposto
How to find (i) unique datetimes and (ii) count their occurences?
I might have found a solution/workaround, but if there are more compact, correct and robust methods I will accept them! a = [{'...

11 mesi fa | 0

Domanda


How to find (i) unique datetimes and (ii) count their occurences?
How to find (i) unique datetimes and (ii) count their occurences? % Input a = [{'22-Jun-2023 09:00:00'} {'23-Jun-2023 19:...

11 mesi fa | 1 risposta | 0

1

risposta

Domanda


How to change datetime format?
Given this: datetime('02-Jul-2023','InputFormat','dd-MMM-yyyy') How can I get this format ? datetime('02-Jul-2023 22:00:00')

11 mesi fa | 1 risposta | 0

1

risposta

Risposto
A compact way to assign values of a matrix to another matrix
Sorry, stupid question... I had a logical matrix "y" and I got what I wanted, just by assigning a numerical array instead of a l...

11 mesi fa | 0

Domanda


A compact way to assign values of a matrix to another matrix
How to assign the values of matrix "x" to the matrix "y" in a, possibly, single line of code? % Input x = [3 2 2; 4 5 3; 6 5 4...

11 mesi fa | 2 risposte | 0

2

risposte

Domanda


xticks and yticks with decimal exponents
How to reproduce exactly these axes? % My attemot plot(10^(0):10^(3),10^(-8):10^(3)) set(gca, 'XScale', 'log', 'YScale', ...

11 mesi fa | 2 risposte | 0

2

risposte

Domanda


Transparent patches in the main figure, but no transparent patches in the legend
In the following example, how can I have transparent patches in the main figure and No transparent patches in the legend? N = 1...

11 mesi fa | 1 risposta | 0

1

risposta

Carica altro