![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/2688126_1522090741731_DEF.jpg)
Luca Amerio
Politecnico di Milano
Followers: 0 Following: 0
Professional Interests: Civil and structural engineering
Feeds
提问
Generate timehistory from PSD
I'm trying to generate a time-history from a synthetic PSD. My idea (happy to accept other solutions) was to turn the PSD into ...
3 years 前 | 0 个回答 | 0
0
个回答提问
Restore standard interactive axes behavior (callback) when using custom ButtonDownFcn
In the latest MATLAB versions, by default, axes got a very neet degree of interactivity. For example, just doing [X,Y,Z] = pe...
5 years 前 | 0 个回答 | 2
0
个回答提问
Get position when using uicontextmenu
I'm trying to code an interface that alows the user to perform some actions on a set of points visualized as a scatter plot. To...
5 years 前 | 2 个回答 | 0
2
个回答提问
pyenv function not found
I'm trying to call a python function from matlab. I'm following the instructions found in Undefined variable "py" or function ...
5 years 前 | 1 个回答 | 0
1
个回答提问
splash screen for compiled application is not hard-coded in the app and can be modified
When launching a compiled application, the app look in the folder it is launched from for a file with the same name of the splas...
5 years 前 | 1 个回答 | 0
1
个回答提问
Figure toolbar disappears when selecting 3-D rotate
The following code produces a figure without the standard toolbar, but leaving the new "axes" toolbar with the zoom, rotate, dat...
5 years 前 | 1 个回答 | 0
1
个回答提问
Why this bandpass butterworth is unstable (while the corresponding low and high pass are stable)?
I have a signal sampled at 750Hz T = 60; fs = 750; t = (0:T*fs-1)/fs; x = sin(6*t) + 0.1*rand(size(t)); I want to filter ...
5 years 前 | 1 个回答 | 0
1
个回答提问
Apply Frequency Response Function to time series
I have a time series and a (complex) frequency response function . I want to compute the time history obtained applying to ...
5 years 前 | 1 个回答 | 0
1
个回答提问
What `gcbf` stands for?
I never remember the syntax of the gcbf command because I cannot understand what it stands for. gcf stands for "Get Current Fig...
5 years 前 | 1 个回答 | 0
1
个回答提问
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). ...
5 years 前 | 3 个回答 | 0
3
个回答image(x,y,A) fails on log axis depending on axis's limits
From the MATLAB Technical Support: ------------------------------------------------------------------------------------------...
6 years 前 | 0
| 已接受
提问
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 ...
6 years 前 | 1 个回答 | 0
1
个回答提问
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 ...
6 years 前 | 2 个回答 | 0
2
个回答提问
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...
6 years 前 | 2 个回答 | 1
2
个回答提问
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 ...
6 years 前 | 1 个回答 | 3
1
个回答提问
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 ...
6 years 前 | 0 个回答 | 0
0
个回答提问
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...
7 years 前 | 2 个回答 | 3
2
个回答提问
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...
7 years 前 | 2 个回答 | 0
2
个回答提问
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...
7 years 前 | 1 个回答 | 0
1
个回答提问
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...
7 years 前 | 0 个回答 | 0
0
个回答提问
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)...
7 years 前 | 4 个回答 | 1
4
个回答提问
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. ...
7 years 前 | 1 个回答 | 0
1
个回答提问
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,...
8 years 前 | 1 个回答 | 0
1
个回答提问
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)...
8 years 前 | 1 个回答 | 0
1
个回答提问
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 ...
8 years 前 | 1 个回答 | 2
1
个回答提问
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 ...
8 years 前 | 1 个回答 | 0
1
个回答提问
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...
8 years 前 | 1 个回答 | 0
1
个回答提问
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...
9 years 前 | 1 个回答 | 0
1
个回答提问
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...
9 years 前 | 2 个回答 | 1
2
个回答提问
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...
9 years 前 | 1 个回答 | 0