Domanda


Error when writing file names into a txt file ("nonscalar strings are unsupported")
I have a number of pictures in a folder and I would like to simply get their file names and write them into a txt file: % input...

11 mesi fa | 1 risposta | 0

1

risposta

Domanda


How can I create randomly scattered points between two circles?
How can I create randomly scattered points between two circles? I would like to have 3 inputs (assuming that the two circles ar...

11 mesi fa | 3 risposte | 1

3

risposte

Domanda


annotation with both "doublearrow" and "textblock", with same data units
I am employing the solution proposed by @Jorg Woehl in "Specify annotation position with respect to x- and y-axes values?" to us...

11 mesi fa | 4 risposte | 0

4

risposte

Domanda


Pass the text of fprintf to the plot's text
Would it be possible to pass the text of fprintf to the plot's text? x = rand(1,10); plot(x) m = mean(x); sd = std(x); a = ...

12 mesi fa | 1 risposta | 0

1

risposta

Risposto
Unexpected interquartile range (IQR) result
my bad.. this is the solution: dataIQR = data( data > q(1) & data < q(3) ); and the vertical lines related to the quartiles n...

12 mesi fa | 0

Domanda


Unexpected interquartile range (IQR) result
For a number of distributions I would like to compare and show the interquartile range (IQR) and the standard deviation (STD). ...

12 mesi fa | 1 risposta | 0

1

risposta

Domanda


An easy way to add the mean to boxplotGroup of Adam Danz?
Is there an easy and straightforward way to add the mean to the boxplotGroup of @Adam Danz?

12 mesi fa | 1 risposta | 1

1

risposta

Domanda


Mean of a cell array with different cell sizes?
Mean of a cell array with different cell sizes? % This works: a = {[1 3 4 5];[7 7 8 2];[5 4 1 9]} mean(cell2mat(a),2) % but ...

12 mesi fa | 1 risposta | 0

1

risposta

Domanda


A compact way to reduce, or remove, the fractional part (separated by a decimal point) of numbers in a table
Given a table, could you please suggest a compact way to reduce, or remove, the fractional part (separated by a decimal point) o...

12 mesi fa | 1 risposta | 0

1

risposta

Domanda


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

circa un anno fa | 2 risposte | 0

2

risposte

Domanda


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

circa un anno fa | 2 risposte | 0

2

risposte

Domanda


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

circa un anno fa | 1 risposta | 0

1

risposta

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

circa un anno fa | 0

Domanda


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

circa un anno fa | 3 risposte | 0

3

risposte

Domanda


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

circa un anno fa | 1 risposta | 0

1

risposta

Domanda


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

circa un anno fa | 1 risposta | 0

1

risposta

Domanda


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

circa un anno fa | 1 risposta | 0

1

risposta

Domanda


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

circa un anno fa | 2 risposte | 0

2

risposte

Domanda


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

circa un anno fa | 1 risposta | 1

1

risposta

Domanda


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

circa un anno fa | 5 risposte | 0

5

risposte

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

circa un anno 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 ...

circa un anno 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...

oltre un anno 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 ...

oltre un anno 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...

oltre un anno 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 ...

oltre un anno fa | 2 risposte | 0

2

risposte

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

oltre un anno 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...

oltre un anno 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...

oltre un anno 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...

oltre un anno fa | 1 risposta | 0

1

risposta

Carica altro