Stack Exchange Network

Stack Exchange network consists of 174 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.

1
vote
2answers
55 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
50 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
28 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
37 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: ...
1
vote
0answers
34 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
35 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
25 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
56 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
25 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
19 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
52 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
0answers
15 views

Using NN matlab toolbox

I'm using the Matlab's neural network toolbox for curve fitting. The model I want it to fit is for a second order, one input(proportional valve voltage) and 2 output(tank heights)system. Hence, to ...
0
votes
1answer
39 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
0answers
29 views

Modelling freewheel shaft

I'm trying to model a shaft with a freewheel, but I don't know if I'm doing right. Here you can see my actual model: Here the link to the simulink model: https://www.dropbox.com/sh/ov0zaxd2t3dkti1/...
0
votes
0answers
20 views

Finding transfer function (for an RLC circuit) given magnitude and quality factor

We were tasked to create a MATLAB function that outputs a transfer function of the form: ...
0
votes
1answer
46 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"?
0
votes
0answers
7 views

Dicom database conversion?

I have downloaded a database from enter link description here. The database is in .xml format. Whereas I need the database to be in .dcm format. Is there any software which can help me solve this ...
5
votes
1answer
70 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$>=...
0
votes
0answers
15 views

Re-scaling signal intensity in image in relation to their spatial position

Hi I have a 1D radial profile of a sample across a pipe (fig_1). One data point (along the orange straight line) is acquired at each "band" from the image. The resolution (x,y,z) of each data point is ...
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
26 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
33 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
92 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
55 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
95 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
26 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
19 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
249 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
53 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
614 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
75 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
51 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
51 views

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

I made my code like this, ...
1
vote
2answers
365 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
52 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
657 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
351 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
59 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
408 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
35 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
147 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
213 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
464 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
168 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
208 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
161 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
766 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 ...
0
votes
0answers
77 views

Looking for an empirical model to simulate a braking resistor

I'm looking for a model of braking resistance to simulate and explore information from a load (power) profile of a fork lift 7[t]. This power load should be handled by a hybrid system (battery +23*...
2
votes
0answers
269 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 ...