Community Profile

photo

Marco Riani


Last seen: 1 giorno fa Attivo dal 2019

Full Professor of Statistics (since 2006), University of Parma, Italy. Director of the interdepartmental center of robust statistics for big data (Ro.S.A.) of the University of Parma since 2016. He is author of more than 150 publications and two books published by Springer Verlag New York. His main research interests are robust statistics (regression, multivariate analysis and classification)

Statistiche

All
  • MATLAB Central Treasure Hunt Finisher
  • Knowledgeable Level 3
  • Revival Level 1
  • Computational Geometry I Master
  • Sequences And Series III Master
  • Explorer
  • 5-Star Galaxy Level 5
  • Sequences And Series I Master
  • Strings I Master
  • Scholar
  • Magic Numbers Master
  • Matrix Patterns I Master

Visualizza badge

Content Feed

Visto da

Risposto
Ranking vectors from highest to lowest including repeated ranks.
Hi William, I did it using a loop. Please let me know if the code below is what you wanted x=[0.4 0.1 0.1 0.2 0.1 0.05 0.05]; ...

circa un anno fa | 0

Risposto
Find Optimal Number of Cluster using Silhoutte Criterion from Scratch In MATLAB
x =[ [0.1 0.2 0.15 0.2 0.21 ] 1+[0.1 0.2 0.15 0.2 0.21 ]]; y =[ [0.1 0.2 0.15 0.2 0.21 ] 1+[0.1 0.2 0.15 0.2 0.21 ]]; X = [x...

circa un anno fa | 1

| accettato

Domanda


Percentage of Parent Row Total or percentage of Parent Column Total in new function pivot
I wonder if it is possible in the new function pivot (MATLAB prerelease 2023A) to produce a pivot table which shows values in pe...

circa un anno fa | 1 risposta | 0

1

risposta

Risposto
DBSCAN algorithm and Rand index
Function RandIndexFS of the FSDA toolbox does what you asked. For a preview of the documentation of this function please see h...

oltre 2 anni fa | 0

Risposto
Retime data aggregation for ID
I think in this example it is unnecessary to use retime. I would proceed as follows. Time1=char(Time); Time2=Time1(:,4:end); ...

quasi 3 anni fa | 2

| accettato

Risposto
To this code I want to add the property that every new turn renderes a new color in the plot
Hi Robert, The above is a preview (I hope this is what you asked) Here is the code (done for example for the case nturns=5)...

quasi 3 anni fa | 0

Risposto
How do I find which element of the matrix was used for this equation?
Hi, just call max with two output arguments Please let me know if rowWithMaximumDifference below is what you want Best wishes...

quasi 3 anni fa | 1

| accettato

Risposto
Nested for loop vectorization
% Hi, in your code p is not defined. I assume it is a scalar % If you want to avoid the loop the answer is % Mat=exp(-theta*...

quasi 3 anni fa | 0

| accettato

Risposto
Import arrays in a matrix
% Please let me know if the code below is what you are looking for a=[1;2;3;4;5]; b=[6;7;8]; c=[9;10;11;12;13;14]; maxLeng...

quasi 3 anni fa | 0

Domanda


Set default documentation location programmatically in R2021A
Starting in R2021a, when you run MATLAB with an internet connection, the Help browser displays the web documentation by default....

quasi 3 anni fa | 1 risposta | 0

1

risposta

Risposto
Eigenvalues (eig) and singular values (svd)
Hello Gabri, the answer in short is: "the difference is due to numerical errors". For example in the normal case % Normal cas...

circa 3 anni fa | 0

| accettato

Risposto
How can I plot with different markers, linestyles and colors in a loop?
Please let me know if the code below helps clear close all; clc; n = (1:6); F = rand(7,6); figure Markers={'o' '+' '*' '....

oltre 3 anni fa | 1

Risposto
Trying to solve linear system of equations into matrix form error
% eqns must be linear in vars. % Specify vars as follows (for example). vars=[m1, m2, w1, w2, w_dot0, w_dot1]; [A,B] = eq...

oltre 3 anni fa | 0

| accettato

Risposto
Define a name of the variable using the value of other variable
Please let me know if I understood correctly your question. Month={'January'; 'January'; 'February'; 'February'}; set_of_mon...

oltre 3 anni fa | 0

| accettato

Risposto
how to adjust the font size of RowLabels and ColumnLabels of HeatMap
h.FontSize changes the FontSize of all xlabels, ylabels and the numbers inside the heatmap. In order to change the FontSize ...

oltre 3 anni fa | 0

Risposto
Matlab plot ; How to plot figures like the file attached below
Using function heatmap Create heatmap chart - MATLAB heatmap (mathworks.com)

oltre 3 anni fa | 0

| accettato

Risposto
Behavior of "unique" with mixed complex numbers
Please let me know if I understood correctly your qestion Atest=[-12.9753 - 0.8003i; -12.9938 - 0.4003i; ...

oltre 3 anni fa | 0

| accettato

Risposto
FInd distance between surface coordinates without repetition
Thanks for the clarification. Please let me know if the code below is what you wanted % Define x and y x=1:4; y=2:5; lx=leng...

quasi 4 anni fa | 0

Risposto
FInd distance between surface coordinates without repetition
If x and y are x=[ -32.8778 -10.8573 11.3161 33.4895]; y=[ -32.8778 -10.8573 11.3161 33.4895]; the distance m...

quasi 4 anni fa | 0

Risposto
Having trouble with legend
Hi Carly in your code just replace legend('Data',strLegend(k)); with legend({strLegend{k},'StringYouLike'}) Best Marc...

quasi 4 anni fa | 0

Risposto
Empty sym: 0-by-1
First of all it is necessary to replace [ ] with ( ) in your equation. h1= .5 - (.25 - (1/4*(R^2))*((R^2)-.0625))^(1/2) == ...

circa 4 anni fa | 0

Risposto
How to access names of pictures in a file?
Hi, please let me know if the code below works. clear clc; % location = folder in which your template images exists locat...

circa 4 anni fa | 0

Risposto
How to get an average of two cells in specific conditions?
Hi GDT, please let me know if the code below solves your problem. x = [ 23.50128 22.0385 18.058 35.71267 25.44106 1...

circa 4 anni fa | 0

| accettato

Risposto
Attempting to get fminsearch to work. Likely a silly mistake.
Dear Gus, The MATLAB sintax to make fminsearch work is L1 = 0.0337; % Length of arm 1 (Rough guess) L2 = 0.0166; % Lengt...

oltre 4 anni fa | 0

Risposto
Least-median-of-squares Fitting
Least-median-of-squares fitting is implemented in function LXS of the FSDA toolbox. https://www.mathworks.com/matlabcentral/fil...

oltre 4 anni fa | 0