Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [matlab]

Use of Matlab to solve engineering problems.

0
votes
0answers
9 views

Using interpolation outside function definition in solution using Runge-Kutta 4th order [migrated]

I have written a matlab code to solve the following systems of differential equations. with where and z2 = x2 +(1+a)*x1 ...
0
votes
0answers
15 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
15 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
30 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
19 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
43 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
75 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
59 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
30 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
73 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
72 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
39 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
39 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 ...
0
votes
1answer
89 views

Model Reduction - ANSYS

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. I have been researching for a while, ...
2
votes
0answers
30 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
25 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
61 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
41 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
64 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"?
5
votes
1answer
81 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$>=...
4
votes
1answer
98 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
35 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 ...
3
votes
0answers
34 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
106 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
66 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
138 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
28 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
20 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
339 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
63 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
765 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
80 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
58 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
67 views

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

I made my code like this, ...
1
vote
2answers
512 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
58 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 ...
3
votes
1answer
961 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 ...
2
votes
1answer
384 views

Design op-amp circuit from transfer function? [closed]

What is the best way to design a circuit based on the following transfer function: (0.0364*s)/(0.0002*s + 1) ? I am trying to design the derivative stage of a PIDF controller using op-amps EDIT: This ...
2
votes
0answers
60 views

calculate output $y(t)$ from $Y(z)$ having discrete closed loop model with sine input - residue method

I have closed loop - discrete model. This is how it looks in matlab: I need to compute analitically output $y(t)$ (same as in the Matlab's scope) having $Y(z)$. Where $Y(z)=U(z)*G(z)$ Input is ...
3
votes
1answer
513 views

Question on sketching nyquist plot of transfer function with poles on imaginary axis

I have encountered some issues with sketching the nyquist plot for the following loop transfer function: $L(s) = \frac{25K}{S^2+25}$ I know that you first take: $L(\omega=0) = K$ $L(\omega = ...
0
votes
1answer
37 views

System Identification Toolbox - How is the quality of the model output calculated?

I'm searching for the calculation of the quality of the estimated model output compared to the measured data. I'm working with the System Identification Toolbox. You can see an example here http://de....
1
vote
1answer
153 views

Active suspension with accelerometers and displacement observer/estimator problem

I faced a logical dilemma, while designing and simulating Active suspension system. This is what I have planned: My system will be controlling actuators of a vehicle, using PI. It is 2nd order ...
5
votes
1answer
281 views

Is it normal to get different solutions with different ODE methods in MATLAB simulink?

I made a block diagram using simulink. When I solve it with ode45 and ode23 it gives me different graphs. Is it normal? Should I use the proper one? ...
1
vote
1answer
553 views

Closed loop response of a discrete system

I have trasfer functions of a plant and a controller in laplace domain. I checked for the closed loop response by applying a step response. The system is found to be stable. I checked the response ...
6
votes
1answer
175 views

mass calculation from transfer function or bodeplot

I have a double mass rotary model. The two masses are connected by an axis which together acts as a spring damper system of the fourth order. The system is actuated by a motor and the angle of ...
3
votes
1answer
232 views

How do I create a graph of the phase angle and response of a harmonic excitation in Matlab?

In my course of dynamics of structures, I am struggling with some basic principles. As a practice, I am plotting (or attempting to plot) the curves that are shown in the course book, with the help of ...
5
votes
1answer
169 views

Programmable parameter change of Pro/E simulation by using Excel VBA , Matlab, Labview or Pro/E own function

Now, I've been conducting beam simulation by using Pro/E. I would like to change payload(force) of beam step by step, and then plot the relation between deflection and payload(load range : 50kg to ...
1
vote
1answer
852 views

How to import a CATIA assembly into SimMechanics

I need to import an assembly from CATIA into SimMechanics but in CATIA, the .stl file format is available only for part files and not for assembly files. How can I do this? Is it possible to convert ...
2
votes
0answers
292 views

Export simulink sdi dataset from MATLAB 2015b

I have used the Simulation Data Inspector in Simulink to log a dataset of two time varying signals. The only option I see concerning exporting is to .mat or to workspace, which basically produce the ...