# Massimo Zanetti

Followers: 0 Following: 0

I have received the M.S. degree in Mathematics from the University of Ferrara, Italy and the Ph.D. in Information and Communication Technologies at the University of Trento, Italy. My research interests include variational methods to segmentation, numerical optimization, remote sensing image processing, change detection in remote sensing images.

**Statistics**

RANK**86**

of 291,854

REPUTATION**1,716**

CONTRIBUTIONS

**2** Questions

**260** Answers

ANSWER ACCEPTANCE **
50.0%
**

VOTES RECEIVED**628**

RANK**9,372** of 19,829

REPUTATION**71**

AVERAGE RATING**4.80**

CONTRIBUTIONS**2** Files

DOWNLOADS **3**

ALL TIME DOWNLOADS**418**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Feeds**

Question

Read/write georeferenced image

Hi, here I am wondering why this simple operation of reading a georeferenced .tif image and writing some results in the same geo...

1 year ago | 2 answers | 0

### 2

answersQuestion

imadjust low_in high_in, why only in the range [0,1] ?

Hello, it looks a bit strange that the function imadjust accepts, other than single/double numeric types, also integer types, bu...

4 years ago | 1 answer | 0

### 1

answerwhat is the meaning of this error?

Here the problem is not related to Matlab.. As far as I know opening a pdf from command line in Windows goes like this: path...

7 years ago | 0

| accepted

Convert Cell to Struct

<https://it.mathworks.com/help/matlab/matlab_prog/access-data-in-a-structure-array.html>

7 years ago | 0

Moving a greyscale image such that the lowest pixel with an intensity above 0 is at the bottom of the image.

Use the |circshift| function, which shifts arrays along one dimension. Here is an example: %generate an image (matrix) A...

7 years ago | 0

| accepted

How to fit multiple Gaussian functions in image without using the Curve fit GUI?

Hi Mishra, here it the function you need <https://it.mathworks.com/help/stats/fitgmdist.html fitgmdist>. It does fitting u...

7 years ago | 1

Matlab Training Course on your own: do we get a certificate? Which documentation is provided?

Hi Jesus, you can find all info about matlab certifications at: <https://it.mathworks.com/services/training/certification.h...

7 years ago | 1

| accepted

how to read a textfile that contain an array of text values into matrix

Here is it, you should know how many columns your data span (I guessed by reading your file they are 25): %open file fna...

7 years ago | 1

convert fixed point to real data

Does this help you? %get sfi a = sfi(pi); %convert to double d = double(a)

7 years ago | 0

How to crop a square that has a rotational angle?

Inspect this: <https://it.mathworks.com/help/images/ref/roipoly.html roipoly> Here is an example of what you can do: %op...

7 years ago | 2

How to enhance an image with respect to an image of much better quality.

Try considering this: <https://it.mathworks.com/help/images/ref/imhistmatch.html histogram matching>

7 years ago | 0

Partial transparent surface plot

Play with Chart Surface Options: <https://it.mathworks.com/help/matlab/ref/chartsurface-properties.html> You can set |Alpha...

7 years ago | 0

| accepted

How to make a curve smooth in spline block

If you want to approximate a set of points by a smooth curve you need a *smoothing spline*, not just a *spline*. Moreover, in yo...

7 years ago | 0

Discard elements from structure array

There is a specific function to remove a field from a structure: <https://it.mathworks.com/help/matlab/ref/rmfield.html rmfield>...

7 years ago | 0

Display values with fprintf

Here it is ret = 0.000065003; std = 0.0207; fprintf('The return is %.4e and the standard deviation is %.4f \n',ret,st...

7 years ago | 1

How do I integrate this set of matrix data points

You just need one |for| loop as |trapz| operates also on matrices. This is the piece of code: A = rand(32); B = zeros(32...

7 years ago | 0

| accepted

Multiple .txt input files

Use |dir| function to list files with .txt extension %list folder files files = dir('*.txt'); and put your code in...

7 years ago | 1

| accepted

Cross correlation Between two matrices row by row

There are some issues in your code. # |crosscorr| function requires two vector inputs. |Ain01_correct(i,2)| it is not (it is ...

7 years ago | 0

| accepted

Please help me in generating a random string(row vector) in which each element has a different upper bound.

The useful way is U = [2,3,4,5,7]; A = arrayfun( @(x) randi([0,x]) , U ) but, if upper-bounds are 1-digit numbers, y...

7 years ago | 0

| accepted

How to display and delete different line in graph when checkbox check and uncheck

Yuo may find it useful reading these tutorials <https://it.mathworks.com/help/matlab/creating_guis/about-the-simple-guide-gui-ex...

7 years ago | 0

Error: Undefined function <func_name> for input arguments of type 'double'.

Refer to your 2nd line of code fhd = str2func('f1'); The string |'f1'| evaluates to nothing in Matlab, therefore the com...

7 years ago | 0

How do i represent a set of clusters points in scatter plot?

Hi, what you need is exactly Matlab <https://it.mathworks.com/help/stats/gscatter.html GSCATTER> function. Check out the help pa...

7 years ago | 0

| accepted

How to plot a mean value as a function of specific value pairs ?

First, notice that in Matlab |a=[ [1 2], [2 3], [4 5] ]| equals |a=[1,2,2,3,4,5]|. I guess, you meant to associate each entry of...

7 years ago | 0

Binary file reader using fread function

The |fread| function read data in binary format, thus sequences of 0s and 1s. Therefore, you can read raw data just as a sequenc...

7 years ago | 1

How to plot a function file

Check out the |stairs| function <https://it.mathworks.com/help/matlab/ref/stairs.html>

7 years ago | 0

Why is probplot not plotting the reference line for one matrix column?

The problem is not due to -0 (which is the same as 0). It seems that your data in the first column are not even close to be Gaus...

7 years ago | 1

3D surface plot from for loop

Most probably you don't want to plot a surface, instead a plot of a line in a 3D space. Try this: plot3(ang,Lp,d); grid on;...

7 years ago | 0

How to detect & remove steps from signal?

Differentiate your signal (function |diff| in Matlab). The steps are located at points where first derivative is very high. Once...

7 years ago | 0

| accepted

how to concatenate mat files of different row sizes but same column size vertically?

In this line of code: Fv_ROI_concatenated = [a.TwoD_fv_roi_rangefilt_bdip,b.TwoD_fv_roi_rangefilt_bilateral,c.TwoD_fv_roi_r...

7 years ago | 0

Better skeletonization of an image to found branchpoints

Dilate your image before skeletonize it. Try this: %read image G = imread('grid.jpg'); G = im2bw(rgb2gray(G)); %di...

7 years ago | 0