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]

MATLAB is a commercial numerical computer algebra system

0
votes
1answer
24 views

“Hidden” variable in Simulink models

Some example models that are included in the Simulink library, there are some variables that their value is not visible. For instance, in the model power_PVarray_grid_det the sample time of the ...
0
votes
0answers
22 views

Bandstop FIR Filter in Matlab

I have a problem here and I'd like some opinions. So, I need to design a Bandstop FIR filter and find its impulse response & frequency response in Matlab. I was thinking that, for the impulse ...
0
votes
1answer
16 views

LT Spice Automation and automatic Plot data extraction

I am trying to automate LTspice from Matlab. I am running Lt spice netlist which is creating the .raw file. But I am unable to automatically extract the polt data after that. Any solution on how to ...
7
votes
0answers
196 views

What is causing this long tail in the transient reponse?

I have a fifth order transfer function for which I designed a controller using pole-zero cancellation technique on a root locus. I am after <5% overshoot and <2s settling time. Currently, ...
1
vote
1answer
53 views

Discrepancy between MATLAB and Simulink closed loop response?

I have a closed loop system which I am testing in MALTAB and Simulink, expecting the same output. MATLAB ...
0
votes
1answer
12 views

Unable to set transfer function on matlab simulink

I am trying to design a p controller for which i need transfer function and I am unable to set second order equation in denominator. When I do, it shows num(s)/den(s) written inside the transfer ...
3
votes
1answer
206 views

Pole Zero Cancellation on a Root Locus

Question: ...design a controller in the feedforward path to minimise the effects of the two pairs of dominant poles. Use a pole-zero cancellation technique on a root locus diagram.... I have a 5th ...
0
votes
0answers
13 views

How to simulate a piezoresistive pressure sensing MEMs layout without COMSOL?

I have a masks layout of a Piezoresistive MEMs pressure device that I've designed in LEdit(Tanner Tools Eda). The device consists of 4 piezoresistors bonded onto a thin diaphragm which deforms ...
0
votes
1answer
31 views

Need help with understanding the pros and cons of geometric and stochastic based channel models. Which one s preferred under which conditions?

https://www.adv-radio-sci.net/9/165/2011/ars-9-165-2011.pdf https://ieeexplore.ieee.org/document/7794648 https://pdfs.semanticscholar.org/c301/8463116117ea64f69638e15aa78fe9e84093.pdf https://www....
0
votes
1answer
28 views

How to plot root loci in z plane

How to plot root loci of loop gain G(z)= k/(z-0.5)(z-0.5)(z-0.5) in z plane?
1
vote
0answers
16 views

Understanding MATLAB function blocks in Simulink

Before I ask my question, let me explain what I'm trying to do. I want to design a simple system in Simulink with the features shown below. When I say simple is that I don't need complex and large ...
0
votes
0answers
84 views

How to use the Root Locus design method to improve the transient response of my system?

By closing the loop, I need to design a controller in the feedforward path to minimise the effects of the two pairs of dominant poles of the 5th order transfer function. Use a pole-zero cancellation ...
-2
votes
1answer
47 views

rlocus() - Not enough input arguments in MATLAB 2018a

I am following this tutorial on root locus methods and when writing: syms s sys = 1/(3*s^2 + 2*s - 1); rlocus(sys) I get: Error using rlocus Not enough ...
3
votes
2answers
240 views

Why does tracking different plant states result in totally different observer estimates?

I am trying to design a Luenberger observer (or a full state feedback observer) such that with one sensor available I can estimate all the states. A good tutorial is shown here. My system is 4th ...
0
votes
1answer
40 views

Simulate physical FM Transmitter circuit on Matlab Simulink

I am new to matlab. I was working on a simple modulator that I have to simulate. I've faced a problem with connecting the output frequency from the resonance circuit to the scope, A red dotted line ...
-1
votes
1answer
44 views

Izhikevich Neuron model - Equations [closed]

Disclaimer: I've asked this same question before, but on StackOverflow, where I got (not so kindly) reminded that StackOverflow is not the right place for this question. I'm pretty confident that this ...
0
votes
0answers
9 views

How to resolve error in sending user data to USRP's SDRu transmitter function?

I'm trying to send user defined data over USRP board using SDRu Simulink blocks available. Following is the block diagram of my model: Basically right now I'm trying to use the USRP board as a ...
0
votes
1answer
74 views

Generating a realistic sine wave in MATLAB

I'm working on a simulation on MATLAB and I need a realistic sine wave which has harmonics. So I know there would be harmonics at 2f,3f... but I am not sure how to determine their amplitude. I tried ...
1
vote
1answer
60 views

Synchronous generator induced EMF

I have started studying synchronous generators in more detail of recent and I'm finding it difficult locating helpful information regarding their operation. What is the formula that can be used to ...
3
votes
1answer
153 views

How to calculate poles for a high order system?

I have a fourth order system which is fully controllable and observable, which needs to satisfy certain design criteria. I am trying to design a full-state feedback controller for the following ...
0
votes
1answer
41 views

Simulating a non-linear system in Simulink

I have a set of non-linear equations, which I would like to model in Simulink in order to compare to their linear counterpart. Here is the block diagram of my setup. The state-space block represents ...
0
votes
1answer
34 views

Replacing Electrical System with a Gain?

I have a system containing both a mechanical and an electrical part, as shown in the block diagram below. I am interested in simplifying this block diagram by eliminating the electrical part and ...
1
vote
1answer
42 views

Pole placement to create a full-state feedback controller?

I am learning about control theory by going through Oagata's Modern Control Engineering. As part of a practice exercise I am trying to design a full-state feedback controller that satisfies my ...
1
vote
0answers
33 views

ROM initialization in VHDL for waveform generator

I have to create a waveform generator and i used matlab to generate the sine wave. Now my TA told me to store the points from the wave in a ".mem" file then initialize the ROM by i guess importing ...
2
votes
1answer
64 views

Comparing Responses for Linear and Non-Linear System in Simulink

I am going through and reviewing this unprofessional (I highlight a potential mistake in Section3.4) paper: Nonlinear Model & Controller Design for Magnetic Levitation System Specifically, I am ...
0
votes
1answer
28 views

How to plot response of a non-linear state space model in Simulink?

I am trying to plot a non-linear model in order to compare it with it's linearized counterpart. I am following this paper Nonlinear Model & Controller Design for Magnetic Levitation System and ...
0
votes
1answer
20 views

Can the Kalman gain matrix contain negative values or absolute values greater than 1?

I have implemented an EKF in a power systems application. When I run a simulation in Matlab, in some iterations of the filter I get a Kalman gain matrix (K) with negative values and/or absolute values ...
0
votes
1answer
47 views

How can I model and simulate a resonant inductive square spiral coil in MATLAB?

I was wondering if it was possible to model and simulate my WPT system in MATLAB to determine if my analytical calculations are correct. I want to model my system in MATLAB as I have seen on MathWorks ...
2
votes
1answer
96 views

Reducing the order of transfer function while maintaining same response

Scenario: I have been going through Ogata Modern Control Engineering book and working through several exercises to improve my understanding of basic control principles. I came across the following ...
0
votes
2answers
49 views

Matlab Three Phase System Model

I have a question regarding MATLAB Simulink if anyone is familiar with the software. I usually have no problems creating basic models like this one below: I know the image is rather small. It is ...
1
vote
0answers
41 views

Reading from Keysight Scope to MATLAB

I have a DSO-S 104A scope. I have it connected through a USB 3.0 cable to a PC with MATLAB. I want MATLAB to read the waveform from the scope into a vector. I'm sampling packets of pulses, the ...
2
votes
1answer
51 views

Energy loss by Hysteresis

I recently did an experiment aiming to verify the magnetization curve of the cores of a single-phase electrical transformer. I applied a sine within one core and I observed this one and the other one ...
0
votes
1answer
33 views

Connect 3-port and 1-port devices defined by S-matrices

There are two linear networks. The first is defined by 3-port S-matrix: \$\mathrm{S}_\mathrm{A} = \left[ \begin{array}{lll} s_{11} & s_{12} & s_{13} \\ s_{21} & s_{22} & s_{23} \\...
0
votes
1answer
59 views

How to plot input reflection coefficient in dB scale using Matlab

So I have a problem that asks to plot the input reflection coefficient of a transformer in dB scale between 0.5 GHz and 4 GHz using Matlab. Here is the code I have thus far, it is plotting in ...
-1
votes
1answer
60 views

Plot of a mixed signal in matlab

I have the following signal xa=4000.*sin(2*pi*f1*t)+1000.*sin(2*pi*f2*t)+ 500.*sin(2*pi*f3*t); and the values of f1,f2 and f3...
0
votes
1answer
33 views

Holding signal true for x seconds in LabView

I'm trying to create an automatic startup override system whereby when an ESD override button is clicked, a signal will be held true for 10 seconds overriding my ESD interlocks. This seems like there ...
0
votes
0answers
42 views

Problem opening a PLECS blockset in MATLAB

A friend of mine sent his simulation of a converter for which he had used PLECS. It is in the format "example.slx". I have MATLAB R2017b. I downloaded the PLECS block set for MATLAB and activated it ...
1
vote
0answers
28 views

How can I get/calculate simulink bldc parameters

I tried to get the parameters for a bldc simulation https://de.mathworks.com/help/physmod/sps/ref/brushlessdcmotor.html I tried to find a similar motor to the I need (500 W, 20-25 Nm, geared bldc) ...
1
vote
1answer
37 views

Filtering Audio Signals in MATLAB

I'm trying to apply a filter to an audio signal in MATLAB and having some trouble processing it. So far, I have a transfer function that describes a K-weighted filter, and I am able to create a bode ...
1
vote
0answers
198 views

PI Controller Design (Ziegler-Nichols) and Unit Step Response Graphing for 4th order system

I have a system that requires a PI controller designed using the Ziegler-Nichols Methods. I would also like to plot the unit step response in Matlab, but I am getting extremely weird results. This is ...
2
votes
0answers
36 views

Sending data from Simulink Matlab to development board F28379D

I'm fairly new to Simulink programming so bear with me. My project is to measure some parameters with the ADC of the board and send them over serial (SCI_A) to a Simulink file I'm running on my PC ...
2
votes
1answer
78 views

Supercapacitor electric model

I am doing a dissertation in Electrical and Computer Engineer which involves supercapacitors. I read the norm IEC/EN 62391–1 and the 60384-1 but still I don't have a clear answer for what's the ...
0
votes
0answers
70 views

Simulink Matlab : model

I am a beginner in MatLab Simulink and would like to create electrical model with Simulink model with PID controller, but I couldn't find some model in my figure for "springs" and "hard limits". ...
0
votes
0answers
48 views

Issues to create a current control transfer function for a DCDC Converter

I'm trying to reproduce a work I've seen in an article, but I'm encountering some issues. I used the data provided and the transfer functions placed by the author, but I did not get the same result, ...
0
votes
1answer
124 views

How to model MPPT technique with PID controller

I need to model a MPPT algorithm with a PID controller at Simulink. The model will feed the gates of two mosfets of a push-pull converter. I have to extract max power from PV and have a fixed voltage(...
0
votes
0answers
12 views

Connection of Solar Array in Series in Matlab Simulink environment

I need to simulate a solar photovoltaic feed induction motor system. I need to connect 12 solar array/module connected in series to increase open circuit voltage. I have modeled a solar array of 36 ...
1
vote
0answers
236 views

How can i create a dead time between two signals in Matlab/Simulink?

I have a curcuit which outputs two different pulse signals from two different "PWM generator(DC-DC)" block. I will apply these signals to two different mosfets. Thus I need to create a dead time to ...
0
votes
1answer
165 views

Root locus for an open loop transfer function?

The function, rlocus(), in MATLAB is used for closed loop system roots for variation in gain K. However, I am curious if there is a similar function for variation ...
0
votes
0answers
58 views

how to edit the signal name of scope?

I used the Using the PLECS Scope to edit the scope but when it comes to the name of the signal I could not change even though I double-click on it and tries many times, is there any way to change the ...
0
votes
1answer
63 views

Create repeated pole/zero in transfer function---Octave

Say I have such a transfer function with a repeated zero $$ \frac{s^2}{s+2} $$ How do I enter this in Octave as a transfer function? Perhaps this question applies to Matlab as well. If the zero was ...