Questions tagged [matlab]
Use of Matlab to solve engineering problems.
119
questions
4
votes
1
answer
173
views
How to design the right input to obtain a desired output for a linear system?
If I have a state-space model, so that matrices $A$, $B$, $C$ and $D$ are known, how can I design the right input $u$, so that $y$ is a desired signal, say, a sine wave with constant amplitude?
$$\...
3
votes
0
answers
75
views
How to solve LMIs with equality constraints using MATLAB?
I would like to find n by n matrices P and Q that minimize
J = norm(P) + w*norm(Q), where w is a given weight,
subject to
P>=0, Q>=0, and f(P,Q)=0, where f(P,Q)=0 is a given function of P and R.
I ...
2
votes
0
answers
41
views
Discretise this transport equation
I am trying to discretise the PDE: $$\phi \frac{\partial c}{\partial t}+\frac{\partial j}{\partial x}=0$$ where $c$ is a function of $x$ and $t$, and $j=qc-D(q)\frac{\partial c}{\partial x}$, $q$ is ...
0
votes
1
answer
244
views
Laplace Equation -- Heated Plate -- Heat Flux Boundary Condition
I am having a problem with transferring the heat flux boundary conditions into a temperature to be able to put it into a matrix. I understand that
deltat = deltax*q''/k but I do not know how to code ...
1
vote
0
answers
72
views
Temperature distribution
First of all I am just a starter in Matlab, so the program is not optimized. For now I just want to get it running. This is a 3D heat problem with boundary conditions. Fixed temperature from the north,...
0
votes
1
answer
1k
views
How to choose reference signal in a state space model?
I am a bit confused about choosing reference signal in order to control state space models.
I have read(however without deep math explanation) that one has to scale his reference signal for to make ...
1
vote
0
answers
46
views
Simulink analysis of data parallel to generation
I would like to simulate the following scenario with Simulink/Matlab(/Stateflow): A random number generator is running. Every 10 seconds the numbers that were generated during the last 10 seconds are ...
1
vote
0
answers
26
views
Linear Guidance law into X-Y axis
Im currently writing a model for a guidance law named Maintaining Guidance law.
The law looks as following: $$ a_{M} = [K_1,K_2]*[\dot{\lambda_T} ,\dot{\lambda_D}]'$$
Since im using a linear model I ...
1
vote
2
answers
3k
views
How to generate a NACA 6-Series Airfoil analytically?
I asked this question over at Aviation.stackexchange but after that I figured it might be better to place it here. Especially since there were really good answers on the NACA 5-digit-Series airfoil ...
1
vote
1
answer
84
views
Unachievable motions because of singular Jacobian
This is the Jacobian of a robot arm (IBB IRB 120) with already specified joint angles (0,0,0,0,0,0). This Jacobian is singular for this configuration.
...
2
votes
1
answer
1k
views
Nyquist plot - what is the meaning of circles with dB values on complex plane
Let's start with arbitrary transfer function as an example, such as:
obj = tf([1 2],[1 0 2 5]);
nyquist(obj);
grid on;
axis([-2 2 -2 2]); axis equal
As far as I ...
5
votes
1
answer
169
views
dSPACE compiler linker error -- fscanf undefined
I'm dealing with a somewhat intractable problem. We're running dSPACE 7.4 (RTI 1006) on MATLAB 2011a, which I understand uses the dSPACE DS1006 C Compiler v. 2.2. When I try to compile one of our ...
0
votes
1
answer
153
views
dSpace overrun issue
I'd like to ask you if a C mex s-function model in Simulink can get the dSpace execution time lower, rather than having a model with blocks and functions.
0
votes
1
answer
92
views
i have problem with cartesian coordinates pendulum EOM in matlab [closed]
I made my code like this,
...
1
vote
2
answers
1k
views
Calculating a derivative in a loop?
I am not sure where else to post this, so here goes.
I have a velocity profile ($v_{\phi}$) for a radial distance ($r$). From this velocity profile I am trying calculate the shear rate ($y$) which ...