# Alessandro Maria Laspina

**Statistics**

RANK**28,618**

of 239,130

REPUTATION**1**

CONTRIBUTIONS

**19** Questions

**3** Answers

ANSWER ACCEPTANCE **
47.37%
**

VOTES RECEIVED**1**

RANK

of 16,799

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Question

Validating MPC controller with parameters

I have an MPC controller, and build it with the following script: nx = 11; ny = 11; nu = 13; nlobj = nlmpc(nx,ny,nu); nlobj...

20 days ago | 0 answers | 0

### 0

answersQuestion

Specifying reference state values in MPC controller cost function

Hello, I have an MPC controller, built with the following general format (i have not included the nonlinear equations because ...

20 days ago | 0 answers | 0

### 0

answersQuestion

Very small u control values in LQR initial response

I have a system described by xdot=Adx+Bdu and y=Cdx+Ddu, where dx and du are the changes in the states and control variables, ba...

23 days ago | 1 answer | 0

### 1

answerQuestion

Creating rgb vector based on Z data for standard colorbar

I have Z data for my x, and y data for which I would like to plot in a standard plot using the z data as a colorbar. I know tha...

2 months ago | 1 answer | 0

### 1

answerHow can I rotate a vector by a certain amount along a specific plane?

To find the vector that is in the same plane as the points c, a, and b, which is orthogonal to a we must: 1) first find the vec...

2 months ago | 0

| accepted

Question

How can I rotate a vector by a certain amount along a specific plane?

I have three points in inertial space which is enough to specify a plane. I have a vector that lies in this plane, and would lik...

2 months ago | 2 answers | 0

### 2

answersQuestion

How can you have two different legend charts on the same plots with different titles?

I have a a figure where I am trying to plot 6 different graphs. 3 of these graphs belong to a particular subset which represent ...

3 months ago | 1 answer | 0

### 1

answerQuestion

Surface fit x y vector data with length(x)*length(y) size Z matrix

Hello, I am reposting a question to clear some things up from my previous post. Let me introduce the problem again: I have a...

4 months ago | 0 answers | 0

### 0

answersQuestion

How do you set a breakpoint on multiple lines at once?

I have a long code, and the error handling options are not respected most likely because the code I am using is part of a softwa...

4 months ago | 1 answer | 0

### 1

answerQuestion

Surface fit approximation for x,y and z data

I have an x and y vector, of sizes n and m respectively. I also have a z matrix of size n by m. I am trying to do one of the f...

4 months ago | 1 answer | 0

### 1

answerQuestion

ModuleNotFoundError; running python script in matlab script

I have a python script that I want to run through MATLAB. I have installed python 3.9.2 for windows but when I run the following...

5 months ago | 1 answer | 0

### 1

answerQuestion

How can I transmit multiple variables to a function in the form of a single array?

My function has 20 inputs, in other words, it looks something like this: function [output1,output2]=multi_input(a,b,c,d,e,f,...

5 months ago | 1 answer | 0

### 1

answerQuestion

MATLAB crashes when running in a parallel bash mode

Hello, bear with me for a few paragraphs while I explain the background of the problem as this is a meta-programming issue. ...

5 months ago | 0 answers | 0

### 0

answersQuestion

datcomimport returns all coefficients as 99999

Hello, I am using for006.dat from DATCOM's 99 version to import aerodynamic data. All input data is correctly displayed when u...

6 months ago | 0 answers | 1

### 0

answersQuestion

DATCOM file reader state inconsistent

Hello, I am using DATCOM's for006.dat file to import aerodynamic coefficient data into matlab. When I use the datcomimport fun...

6 months ago | 0 answers | 0

### 0

answers%0.1x formatting not working for two digits (greater than 9)

Correct formatting should be %1.0f.

6 months ago | 0

| accepted

Question

%0.1x formatting not working for two digits (greater than 9)

I am meta programming a script file that is to be run on an ssh which runs one instance of matlab for each script. The for loop ...

6 months ago | 1 answer | 0

### 1

answerQuestion

How can I plot multiple 2d plots with a z value that changes the value of each line?

Hello, I have x, y and z data. I would like to plot x and y data for all different z values using plot, and vary each line colo...

6 months ago | 1 answer | 0

### 1

answerHow do you assign the number of cores via an ssh script?

I've tried running Walter Roberson's answer, but for some reason i've had to include maxNumCompThreads(6) in the script file at ...

7 months ago | 0

| accepted

Question

How do you assign the number of cores via an ssh script?

Hello, i have a batch script file that is run on an ssh with the following format: nohup matlab -nodesktop -nosplash -nodisp...

7 months ago | 2 answers | 0

### 2

answersQuestion

Inverse of a function gives different results than the negative function with fmincon

Hello, I have a function f(x) which I am trying to maximize. Following the suggestions on: Maximizing an Objective - MATLAB &...

7 months ago | 3 answers | 0

### 3

answersQuestion

What R does scircle1 refer to?

The scircle1 equation from the mapping toolbox has inputs in the form of latitude, longitude and R, which is defined as the arc ...

2 years ago | 1 answer | 0