Community Profile

photo

Luca Amerio


Politecnico di Milano

54 total contributions since 2011

Professional Interests: Civil and structural engineering

Contact

Luca Amerio's Badges

  • Thankful Level 2
  • Knowledgeable Level 1
  • First Answer
  • Solver

View details...

Contributions in
View by

Submitted


HDF2Struct
Reads HDF5 files and returns data in a structure

29 jours ago | 1 download |

Question


How to fit a line through this data "smartly" ?
I have the x-y data shown in the figure below (for the curious, it is the logarithm of the amplitude of a Hilbert transform). ...

3 mois ago | 3 answers | 0

3

answers

Answered
image(x,y,A) fails on log axis depending on axis's limits
From the MATLAB Technical Support: ------------------------------------------------------------------------------------------...

environ un an ago | 0

| accepted

Question


Apply function (str2double) to each element in a timetable
Hi I have a timetable where some numeric fields are stored as strings and other as 1x1 cell arrays of strings (of char array ...

environ un an ago | 1 answer | 0

1

answer

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

environ un an ago

Question


slicing an M-by-N-by-3 matrix using an M-by-N matrix of logical values
Hi everybody I have an RGB image as a MxNx3 matrix. I would like to slice it using an MxN matrix of logic values (one for ...

environ un an ago | 2 answers | 0

2

answers

Question


image(x,y,A) fails on log axis depending on axis's limits
Hi The question is pretty much self explanatory given the following example The following code *works*: figure A = r...

environ un an ago | 2 answers | 1

2

answers

Question


New instance of matlab opening every time I double click a matlab file
Hi Every time i double click a matlab file (*.m, *.mat or *.fig) in an explorer windows, a new MATLAB instance starts, even if ...

plus d'un an ago | 1 answer | 2

1

answer

Question


Interactive GUI Patch/Tessellation
Hi everybody I'm trying to design a GUI where the user is able to draw a series of connected patches (a tessellation) over a ...

plus d'un an ago | 0 answers | 0

0

answers

Question


MinGW add-on installation fails
Hi I'm trying to install MinGW to compile a .c file. I'm using the Add-Ons menu as suggested by https://it.mathworks.com/help...

plus d'un an ago | 2 answers | 3

2

answers

Solved


calculate PI without using pi function
There are many methods to get the pi(Ratio of circumference to diameter). You should get pi without using the pi function in M...

plus d'un an ago

Question


Get maximum number of outputs from anonymous function
Hi everybody. I would like to call a function from within another function. The problem is that i don't know a-priori the numbe...

plus d'un an ago | 2 answers | 0

2

answers

Submitted


tabbedFigure(parentFig,tabName,source)
Creates a new tabbed figure window or adds a new tab to an existing one.

plus d'un an ago | 0 downloads |

Thumbnail

Question


Neural network with time-history input
Hi everybody I would like to create a NN with a time-history as input and a single value as output How can I do it? than...

environ 2 ans ago | 1 answer | 0

1

answer

Question


Find estimator for bivariate distribution
Hi I have a set of Joint Probability Density Functions obtain from some sets of data. I would like to find the "best fitting li...

environ 2 ans ago | 0 answers | 0

0

answers

Question


Equivalent of [C{:}] for vertcat
To concatenate horizontally the content of a cell array we can use the very practice syntax [C{:}]. For example: A = {(1:3)...

plus de 2 ans ago | 4 answers | 1

4

answers

Question


Compute that portion of a surface above a threshold
Hi. I have a variable Z define over a grid of points X,Y. I would like to compute the area of my domain where Z>threshold. ...

plus de 2 ans ago | 1 answer | 0

1

answer

Question


CurrentCharacter properties not working as expected
Hi everybody. if I run the code h=figure; h.CurrentCharacter=char(i); disp(double(h.CurrentCharacter)) for i=1,...

plus de 2 ans ago | 1 answer | 0

1

answer

Question


Pause until a figure close OR a button is pressed
Hi. In the middle of my script I ask the user to zoom a figure and call ginput afterwards. I would like to interrupt (return)...

plus de 2 ans ago | 1 answer | 0

1

answer

Question


Create a nested structure using a variable as field name
Hi everybody Lets say that I have a variable path='\levelOne\levelTwo\levelThree' of which *I don't know the number ...

plus de 2 ans ago | 1 answer | 0

1

answer

Question


Save changes to class properties with dot notation
Let's say I have a simple class like this one: classdef MyData properties Data = 0; end methods ...

plus de 2 ans ago | 1 answer | 0

1

answer

Submitted


uiselectobject
ask the user to select an object of the specified type

environ 3 ans ago | 0 downloads |

Submitted


defaultValue - set default value for optional arguments
Assigns default value to funtion optional input variable

environ 3 ans ago | 0 downloads |

Submitted


Plot persistent vertical and horizontal line
Draws a horizontal or vertical line that persists through pans and zooms

environ 3 ans ago | 0 downloads |

Question


GUI - set a object to be selectable or not
Hi everybody. I have a GUI (programmatically created) with an axis in it. I would like to have the zoom/datatip/select comman...

plus de 3 ans ago | 1 answer | 0

1

answer

Question


Script vs Function with no input/output
Sometimes I have to write a function ad-hoc for a script purpose. Usually I was simply creating a new .m file containing the fun...

plus de 3 ans ago | 1 answer | 0

1

answer

Question


Insert NaNs (or any value) in several position of a vector
Hi i have a vector like this a=[1 2 3 5 6 7 9 10 13 14]; I would like to find where the diff is bigger than a value (le...

plus de 3 ans ago | 2 answers | 0

2

answers

Question


MATLAB from command line - Cannot find script in the current direcoty
Hi, I just installed Matlab on a Linux machine that doesn't have the X server. Therefore I launch matlab using the -nojvm -nod...

presque 4 ans ago | 1 answer | 0

1

answer

Question


GUI / GUIDE - Ask to select a line
Is it possible to ask user to select a line during the execution of a GUI? I would like a popup to appear asking "please sele...

presque 4 ans ago | 1 answer | 0

1

answer

Answered
finding Missing elements in a vector
This will do the trick P(~(P==1:length(P))) just for clarification P==1:length(P) returns a logical array of th...

presque 4 ans ago | 0

| accepted

Load more