Questions tagged [matlab]

Use of Matlab to solve engineering problems.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Problem with performances of a control scheme

I am trying to prove with Matlab that if I have an improper system and I place poles at higher and higher frequencies the performances of the system improves. In particular I am considering the ...
0
votes
0answers
23 views

Matlab Code Debug: Trapezoidal and Simpson's Integration Rule

Hey so I am having issues some issue with this code: ~ ...
0
votes
0answers
28 views

Offline Parameter Estimation for second order system - Ordinary Least Squares

I have a second order system which is described by the following differential equation: $\ \ddot{y}+α_{1}*\dot{y}=b_{0}*u $ where $\ y $ is the output of the system and $\ u $ is the input of the ...
0
votes
0answers
29 views

How to obtain transfer function of servo?

I am using a servo motor and controlling it via arduino. Servo motor is part of a control system and I have to use System Identification techniques in order to obtain the servo's transfer function. ...
0
votes
0answers
38 views

effect of coupling in MIMO systems

I have a MIMO system with a 2x2 transfer matrix, for example consider: $\begin{pmatrix} \frac{2}{s+1} & \frac{1}{(s+1)(s+2)}\\ \frac{1}{(s+1)(s+2)}&\frac{2}{s+2} \end{pmatrix}$ I would ...
0
votes
1answer
22 views

Solving a linear mass balance equation in the form of Ax = 0 with variables in vector x

I have been tasked with solving a series of linear equations in the form of Ax = b, where b is the zero vector. Specifically, I have a matrix E which is 4x7 and a column vector r which is 7x1, as ...
0
votes
0answers
19 views

Tool to simulate sensor data

Say I have a light source at a distance of 1Km from a light detector (photo detector). Right in front of the sensor, I keep a rotating reticle with some sort of pattern. To better appreciate the ...
0
votes
1answer
35 views

Is it possible to have open loop with same input term as the output?

For example, i have this differential equation: $$\dot{y} = 1.8 + 0.58u \sqrt{y}$$ Is it possible to model this system in open loop?? My understanding is that since the term $y$ is in the output ...
1
vote
0answers
24 views

How can I measure the impact of noise on a FFT?

Please, I have to solve a problem and I really need some help. I have to give an efficient method to consider a maximum amplitude as a starting point to consider as noise the whole spectrum below ...
0
votes
1answer
37 views

How to find Performance assessment (IAE and ISE) of a PID Controlled system?

The Integral Absolute value Error (IAE) and the Integral Squared Error (ISE) is to be analysed. A PID Controller is given as follows: ...
0
votes
1answer
30 views

How to input amplitude on a second order transfer function?

Please, I have a question that I believe it's simple to solve. I have some samples of readings from an accelerometer (unit: g) and I did a FFT (on MATLAB) on the vector generated from these samples ...
1
vote
1answer
53 views

Stabilization of telescope on gimbal using data from encoders and gyroscope

I'm designing a control system for a balloon-borne telescope experiment. As the balloon is constantly moving and the gondola is rotating, I want to stabilize the telescope which can be controlled in 3 ...
1
vote
0answers
66 views

Designing a PID Controller for Satellite Control

As an Aerospace Engineering Student, I have been trying to make a project of a PID Controller to control the attitude response of a satellite using the parameters from a project called Kufasat. The ...
1
vote
1answer
69 views

How to use lsim in matlab for a closed loop system

I have designed a system using a minimum realization. I have the A, B, C matrices and I have assigned closed loop poles for the system. I used the place command to find my K matrix. I am wondering ...
0
votes
0answers
21 views

Solving Hertz Impact ODE with Simulink

I have a question about modelling a nonlinear 2nd order ODE for an impact of a sphere on a thin plate in Simulink. Depending on the solver and solver options, my results in Matlab vary a lot. Some are ...
0
votes
0answers
16 views

Assigning constant boundary condition to analytical equation

I'm trying to solve an analytical equation that has boundary conditions and I'm not sure I'm doing it correctly. The equation is: With the following conditions: The code I have is: ...
0
votes
0answers
37 views

Defining transfer functions in MATLAB properly

So for a robust control problem I had to use a weighting function of the form: $$ W_P=\frac{0.5s+0.05}{s} $$ And I do so by ...
0
votes
0answers
47 views

AMEsim - MATLAB coupling by scripting

I would like to use a MATLAB script to compute many simulation with multiple parameters in a software called AMEsim. I know there are MATLAB functions you need to use in the AMEsim installation folder ...
0
votes
0answers
80 views

Design of a lead compensator with root locus in matlab

For the transfer function G(s), I tried to design a lead compensator for the function to have a response to the step with the following specifications: Overshoot= 10%; Ts (2%) = 5s. When I simulate ...
1
vote
2answers
79 views

Analizing Vibrations Influence on Dynamic Weighing

I have a very sensitive scale used for dynamic weighing (by dynamic I mean that the scale and load cells are actually beneath a belt conveyor that actively weight product when it´s being transported ...
1
vote
0answers
66 views

How can I do engineering projects for money at home? [closed]

I am a M.Sc. graduate in mechanical engineering and I have experience with engineering software, like MATLAB, CATIA, and ABAQUS. I want to know how I can find industrial projects like finite element ...
0
votes
1answer
33 views

Temperature not changing in my code for 1-D heat equation: Explicit Scheme

I am trying to solve the following 1-D heat equation with provided boundary conditions using explicit scheme on Matlab. I have been trying to plot the results but I realized that my temperatures are ...
1
vote
1answer
88 views

Get results of output for each one value of the input - MATLAB ODE

I am simulating a mass - damper - system in Matlab and I have the following vector (1x100) as input to my system: ...
2
votes
0answers
102 views

3 DOF SISO state space control

As part of a control systems course I have to implement control for a 3 DOF SISO mass spring damper model of a robotic cutter arm. The arm is to follow a 5Hz triangle wave reference which is ...
1
vote
0answers
45 views

Simulating a mass - spring - damper system

I have a mass - spring - damper system with external force and I am trying to simulate it using Matlab. I want to have a linearly parameterized form and use the least squares method to find the ...
1
vote
0answers
64 views

Method to simulate a dipole antenna in salt water?

I am looking to simulate the radiation pattern of a 2.7Ghz half-wavelength dipole antenna immersed in salt water. I've been using Altair FEKO software to try and accomplish this. I've tried two ...
1
vote
1answer
169 views

Model Reduction - Export matrices from ANSYS to MATLAB

I am trying to reduce my model in ANSYS using Craig-Bampton Method. My ultimate goal is to read system matrices, stiffness, damping and mass matrix with MATLAB. The size of stiffness matrix that I ...
2
votes
0answers
39 views

Maintaining constant speed of a CVT engine during a slope

I am not sure if this question is related to this community. But nevertheless. I work on CVT engines, I had a new idea of modifying my controller during a slope or a gradient on the road so that the ...
1
vote
1answer
39 views

classify ECG signal using neural network

I am looking to classify ECG signal using with neural network. I have never done signal analysis before. From the samples of data I have, I have noramlised, transformed using the FFT , get the pics, ...
1
vote
1answer
69 views

simulation of an attitude optimal Backstepping controller based quaternion for a UAV in MATLAB

I'am trying to implement this open access research article Attitude Optimal Backstepping Controller Based Quaternion for a UAV I did not find the same result in this paper Can anyone tell me where my ...
0
votes
1answer
43 views

Modeling the stiffness of a membrane

I'm trying to model, in MATLAB, a membrane in 2D which has an initial triangle-like shape. This membrane has pressure acting on it from the inside. There are also some pulling forces in random ...
0
votes
1answer
86 views

Is Matlab old versions usable with Win 10 on core i3 [closed]

About Matlab (a software very useful for engineerinng, too), Is "Matlab 2008" or "Matlab 2012a" usable on laptop with core "i3" with "Win 10 Home"?
4
votes
1answer
94 views

Convolution with RTD laminar flow

I have laminar flow in a tube. Consider the tube to be 0.2 m long and with an average velocity of 0.05 m/s. The analytical expression for my transfer function is: $E(t)= \frac{\tau^2}{2*t^3}$ for $t$>=...
3
votes
1answer
100 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 the A, B, C and D matrices are known, how can I design the right input u, so that y is a custom signal, for example, a sine wave with constant amplitude? $\dot{...
3
votes
0answers
44 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
0answers
35 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
1answer
129 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
0answers
67 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
1answer
185 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
0answers
30 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
0answers
23 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
2answers
552 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
1answer
66 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
1answer
889 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 ...
4
votes
1answer
89 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
1answer
64 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
1answer
72 views

i have problem with cartesian coordinates pendulum EOM in matlab [closed]

I made my code like this, ...
1
vote
2answers
696 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 ...
-1
votes
1answer
65 views

Matlab Polynomial Curve Fitting with Known Relationship [closed]

So, I have this matlab problem, and I'm totally lost. Below, you will find my attempt. We are supposed to fit a polynomial curve to the data, but I'm a bit confused as to how the to get a polynomial ...
2
votes
1answer
1k views

What are the Singular Values of a dynamic system and how are they calculated in the *sigma* function in Matlab?

According to Matlab documentation: sigma plots the singular values of the frequency response of a dynamic system. bode creates a Bode plot of the frequency response of a dynamic system. I am ...