# Marco Castelli

### Politecnico di Milano

Last seen: 12 months ago Active since 2012

Followers: 0   Following: 0

Professional Interests: Civil and Structural Engineer

All

#### Feeds

View by

Question

DICE: launch N times
I get N dice of which each face has a number from 1 to 6. I'd like representing all the possibility with a matrix in which each...

7 years ago | 2 answers | 0

### 2

Question

pause with time and keyboard
I have put the |pause| function in my code. After pause I would like to restart the script after some time (i.e. 10 seconds) or...

9 years ago | 1 answer | 0

### 1

How can I graph the following parametric functions on a 3d graph?
If R is a constant the code is: theta=[0:0.1:6.28]; phi=[0:0.1:6.28]; R=2; [THETA,PHI]=meshgrid(theta,phi); X2=...

9 years ago | 0

Figure of screen size
If your screen has for example the resolution 1920x1080: fig1 = figure; pos_fig1 = [0 0 1920 1080]; set(fig1,'Positio...

9 years ago | 0

parfor. Error: The variable eavg in a parfor cannot be classified.
*@Mohammad Abouali* : Thanks to you help I solve the problem in this way: parfor i0 = 1:size(vett,2) if curva~=2 ...

9 years ago | 0

Question

parfor. Error: The variable eavg in a parfor cannot be classified.
I have already read other topic on Errors and parfor but i don't find the answer to my problem. My code give me an Error: "E...

9 years ago | 2 answers | 0

### 2

How to Resize data in column vector?
A=[0;0;0;0;0;232;222;245;342;232; 0;0;0;0;0;0;0345;323;324;345;343;0;0;0]; idx = []; for i1 = 2:length(A) if and(...

10 years ago | 0

Question

Matlab Trendy - error everyday
My trendy ( <http://www.mathworks.com/matlabcentral/trendy/trends/2270 link> ) shows the following error everyday: This ...

10 years ago | 0 answers | 0

### 0

interpolation x,y coordinate
write |cftool| on the Command Window to use the Curve Fitting Tool. It works also with surface.

10 years ago | 1

Question

beam's cross-section
Hi, I'm looking for a script or function able to calculate the properties of the cross-section of a beam. I need to know centro...

11 years ago | 1 answer | 0

### 1

Question

How many variables in workspace
Hi, I need a function how return the number of variables in the Workspace. Does Someone knows if this function exists? thank...

11 years ago | 2 answers | 0