Questions tagged [matlab]

MATLAB is a commercial numerical computer algebra system

Filter by
Sorted by
Tagged with
0 votes
1 answer
44 views

Confusion regarding simulation in Simulink?

Please check the attached snap especially the portion in red marked area, which is simulation stop time and it has default value of 10? Is it 10 second or any other unit? According to my experience, ...
DSP_CS's user avatar
  • 1,171
1 vote
0 answers
34 views

How to determine beamforming pattern?

I have a beamforming vector, which includes amplitude and phase information. How can I determine the corresponding beamforming pattern for the antenna and plot it in Matlab? For example, I have a ...
Zhenlong You's user avatar
2 votes
0 answers
40 views

Type 3 compensator with opamp compare calculation/simu and measured difference

I'm designing a type 3 compensator with an opamp for a flyback which is operating in a constant voltage mode. Therefore I measured the plant and started to design a suitable type 3 compensator to ...
daniel's user avatar
  • 31
0 votes
2 answers
45 views

Why does MATLAB show a pole in bode plot of an underdamped second order system at natural frequency?

I am using the sisotool in MATLAB to obtain the bode plot of the following transfer function: MATLAB marks a pole at wo which is approximately 11.18 What is the meaning of this? How would you even ...
needbrainscratched's user avatar
0 votes
1 answer
31 views

Quick PMSM FOC PI controler design

For a Simulink Model I am looking for a quick and easy way to estimate PI-controller parameters for a speed control loop and Id and Iq controler of a PMSM using FOC. I don't have a real motor just the ...
hanss's user avatar
  • 75
0 votes
0 answers
52 views

Stuck during designing a PI Controller

I'm trying to design a PI Controller on the basis of this paper: "Design of robust PI control systems based on sensitivity analysis and genetic algorithms." by Jau-Woei Perng • Shan-Chang ...
Rin R's user avatar
  • 1
3 votes
0 answers
38 views

What kind of model can be used to simulate over- and under voltage in a Li-Battery pack?

So far I have not much experience with modeling in the field of lithium-ion cells or batteries except equivalent circuit models (ecm)-models which I've implemented and used for simulations in Matlab/...
Medi1Saif's user avatar
  • 185
0 votes
0 answers
22 views

Plotting the radiation pattern of a half-wave dipole antenna with a frequency of 144 MHz in MATLAB

I need to plot the radiation pattern of a half-wave dipole antenna with a frequency of 144 Mhz in MATLAB but I don't know the code, can someone please help me?
Azl's user avatar
  • 1
0 votes
0 answers
29 views

How to simulate equivalent circuit of a transformer referred to primary side in Matlab?

I was given an assignment to demonstrate a three-phase transformer simulation using Matlab Simulink. I have to demonstrate the simulations of simplified per phase equivalent circuit of a three-phase ...
randomnick's user avatar
1 vote
0 answers
87 views

What is the Z transform of the discrete PI control model?

I have a discreate PI controller implemented in stm32 MCU, it has the following form: $$ PI=K_p\cdot[r(t_i)-y(t_i)] + (K_I)\cdot\sum_{n=0}^{i}[r(t_n)-y(t_n)]\cdot\Delta t $$ where \$r(t_i)\$ is the ...
zymaster's user avatar
2 votes
1 answer
59 views

Rotated gyroscope 180 degrees but integration shows 90

I'm a student new to sensors. I'm currently calibrating the gyroscope from the following IMU: ICM42670. I was able to get the bias by leaving the gyro for some time and getting the average of the ...
miiguell's user avatar
0 votes
0 answers
18 views

PWM in ANSYS Twinbuilder software

Where can I learn PWM Control stratergies for MOSFET using algorithms in an inverter, in ANSYS Twinbuilder software? I also want to get familiarised with ANSYS interface.
FLOWER's user avatar
  • 1
0 votes
1 answer
45 views

pulse generator MATLAB

How to create a rectangular waveform with amplitude 18 to -3 using pulse generator? If I put 18 as the amplitude then the wave is between 18 and 0. How do I change that to 18 to -3?
Gayathri Narayana's user avatar
2 votes
0 answers
46 views

How to have sharper rise for ideal filter frequency response in matlab

I am writing about analog filters in my blog and I decided to plot the frequency responses using matlab, representing the responses using step functions. But matlab uses heaviside function which does ...
Texh Geek's user avatar
0 votes
1 answer
86 views

Solving for Normalised Frequency with LLC Gain Equation

I would like help solving the equation below for Fn within matlab or Octave (preferably). What I know is the following: MG = 1.3 QE = 0.52 LN = 3.5 Because I am following this reference(https://www....
RogerDodger's user avatar
0 votes
0 answers
50 views

SVPWM Dwell time calculation and switching vector

I have modeled a SVPWM for a two-level, three-phase inverter. The modulation index for svpwm is selected as MI = 3Vref/2Vdc, the dwell time is selected based on sector and alpha (angle in each sector),...
무함마드's user avatar
0 votes
0 answers
40 views

How to obtain a bode plot for this circuit in Matlab online version

So I've an electrical circuit in matlab as follows: I've already setup the points of linear analysis. But I can't the option for linear analysis in the linearization tab. The problem is that I cannot ...
Zipho Lunika's user avatar
0 votes
1 answer
44 views

Phase Coefficient versus frequency plot

I have been asked to confirm that the propagation characteristics of a transmission line, with the given parameters R= 2.2 Ohm, L = 105nH, C = 69pF, G = 14 nS. Along with these two equations, I have ...
Elbobbo's user avatar
0 votes
0 answers
52 views

Three-Phase Thyristor Bridge Converter Simulation on Matlab

I am looking for a 24 pulse rectifier to power an electrolyser using a universal thyristor bridge from matlab. I am using a phase shifting zig zag transformer for this. The transformers are shifted by ...
Pouemy's user avatar
  • 1
0 votes
1 answer
59 views

Simulink question: How was this response obtained if the input is zero?

If the input is zero here, how was the response on the right obtained? Also, how was gain block changed to equal to τ? Please note this is a first order system with the equation dx/dt = 1/τ(u-x)
Zipho Lunika's user avatar
0 votes
0 answers
66 views

How to do Phase Resolved Partial Discharge (PRPD) analysis using MATLAB and Simulink?

I've been asked to simulate a model in Simulink for Phase Resolved Partial Discharge (PRPD) Analysis for an input signal and store the output data from the model in a file (in txt/csv/excel format), ...
Pratyush Ghosh's user avatar
1 vote
2 answers
174 views

Trouble calculating transfer function of 3rd order RC lowpass filter

I am working on simulations of a 3rd order RC filter. Cascaded first order RC lowpass X3 with: R = 100 ohms, C = 3.3 nF. When I perform the calculations for the transfer function I get a result that ...
gallauj's user avatar
  • 11
0 votes
0 answers
40 views

Implementing a digital controller in the time domain

I have simulated a digital control system in the Z domain using MATLAB and I have got satisfactory results. However, when I converted the plant and the digital controller to difference equations and ...
learn design's user avatar
0 votes
1 answer
18 views

Scaling load profiles for simulation

I am trying to simulate the behaviour of my power converter when it is subjected to different load conditions (in this case a refrigerator load). I have the load profile of a refrigerator load that ...
Ananth Mohanram's user avatar
2 votes
2 answers
71 views

python vs matlab? [closed]

What is so special about MATLAB? Why in engineering (especially electrical engineering) hasn't pyhton replaced it? I was watching a Youtube video regarding MATLAB: https://www.youtube.com/watch?v=...
cvb's user avatar
  • 21
0 votes
1 answer
61 views

Phase response in MATLAB simulation doesn't match the book

I am trying to replicate a result from a textbook that I am using to study input filter design for buck converters. The parameters for the converter and filter are as follows: D = 0.5 L = 100 μH C = ...
amidher's user avatar
  • 83
0 votes
0 answers
14 views

Why is the extract() function returning the same data for different inputs in MATLAB?

For some very strange reason, the extract() function appears to be returning the original s-parameter data for the first object again and again! It should return different data depending on the new ...
Adrian Salt's user avatar
1 vote
0 answers
45 views

Analog Circuit Modelling in Simscape (Simulink) doesn't work (No Input sighted)

I tried rebuilding the analog circuit for the Lorenz Attractor in Simulink using Simscape toolbox. Luckily they have also an analog multiplier circuit built-in and I re-wired everything just as the ...
johnny_1010's user avatar
0 votes
0 answers
46 views

How to model a balun connected to an antenna object in MATLAB?

My goal is create an RF network in MATLAB using the antenna and RF toolboxes where I already have a 4:1 balun that has been fully characterized as a Touchstone file (s2p). I also have designed a loop ...
Adrian Salt's user avatar
1 vote
1 answer
51 views

Unable to determine transfer function to obtain root locus

This one is pretty straightforward. We set K1 = 4 and want to bring out K2 as a common factor so we can plot the root locus for the system. The correct answer is: $$\small G_{new}(s)=4K_2\frac{(s+6)}{(...
Or Perez's user avatar
0 votes
1 answer
90 views

How do PSIM z-blocks and s-blocks + ZOH work? MATLAB and PSIM results not matching

I've just came across PSIM's digital control and C blocks. My main goal is, in the future, to implement a dynamic control with C block in PSIM. I created the circuit below and it runs: The circuit ...
caio_alBR's user avatar
0 votes
0 answers
55 views

Analog filter gain in simulation is not as expected

I want to have a 1 stage analog active filter with a cutoff frequency of 26 kHz. I used the MATLAB analog filter design toolbox to create such a filter. The filter that was provided by MATLAB looks ...
Vandrey's user avatar
  • 123
0 votes
1 answer
95 views

Buck converter confusing output voltage waveform

I've constructed a simple DC-DC buck converter circuit in Simulink with ideal components. I'm getting a weird output voltage waveform. Although the average output voltage matches my calculations, the ...
Ash's user avatar
  • 23
0 votes
0 answers
43 views

Simulating the step response of a closed-loop system with disturbance

How do I simulate in MatLab the step response of a closed-loop system with disturbance (see image below)? I can't seem to derive a straightforward transfer function output/input due to the disturbance....
Jubilukhulumukmuk's user avatar
0 votes
1 answer
90 views

What is the correct way to measure DC power at the input of a multilevel inverter in a Simulink simulation?

I modelled a 11 level cascaded multilevel inverter, and I would like to measure the power at the input of the inverter, so I do not know how to properly evaluate the actual input power of that ...
salah's user avatar
  • 1
0 votes
0 answers
60 views

Why is the voltage rising when I expect a voltage drop in my model?

matlab model In the model, I have four blocks each with three homes. I am feeding the homes with a three phase voltage source. On the way to homes there are resistors and inductors so I expect ...
electronic guy's user avatar
0 votes
0 answers
77 views

How do I model switches in Matlab/Simulink?

I am trying to model different types of switches in Matlab/Simulink. There is this type of switch that I can't find a name for or design. I am not an expert in digital logic, I only have the basics ...
tt40kiwi's user avatar
  • 101
0 votes
1 answer
101 views

How is the transfer function block in simulink labelled as linear ? especially for the cases where variable 's' has power greater than 1

https://www.mathworks.com/help/simulink/slref/transferfcn.html Above weblink gives description about the transfer function block in simulink. I am confused why it is written in the description at top ...
DSP_CS's user avatar
  • 1,171
0 votes
0 answers
40 views

What does the Torque sign mean in FEMM?

I am working on a project on analysis of Synchronous Machine using FEMM and MATLAB. I am running a code to rotate the motor and record the values of the torque. I am exciting the stator with 3-phase ...
Zelreedy's user avatar
0 votes
0 answers
32 views

Is there any way to find the area between to graphs in Simulink?

I have two graphs, where I want to find the area between them in Simulink. However, I can't seem to find out how to do it. Is there any way to do this in the scope, or how can this be achieved? It is ...
Peter Lyngbye's user avatar
1 vote
2 answers
94 views

Matlab calculation with laplace analysis is different from what I got in LTspice

Here is the circuit diagram. Waveform for the current passing through voltage source. The code I use for Matlab . ...
kile's user avatar
  • 319
0 votes
1 answer
67 views

RFID Antenna Simulation using MATLAB

I have designed a PCB with RFID antenna and I want to simulate this antenna. I know I need to use PCB Antenna Design APP in MATLAB for this. My MATLAB version is 2017b, this version only has Antenna ...
harmonica's user avatar
  • 643
0 votes
0 answers
151 views

Is there a way to only perform a block action at a given time interval in simulink?

I want to use my moving average block but ONLY for 30 seconds from the time from 10 sec to 40 sec in my 50 sec simulink simulation. How can I do this? I don't want it to act from 0-10 seconds and from ...
Peter Lyngbye's user avatar
0 votes
0 answers
91 views

Antenna synthesis using Fourier Transform method

My attempt at formulating an answer for part i: Questions: Am I going in the right direction? The result of the integrals is not a sin(x)/x function like I was expecting and I don't know how to plot ...
yellow_watermelon's user avatar
0 votes
2 answers
168 views

How to design filters with transfer function?

I want to design filters base on transfer function and Bode plots. For example, lets say I want a low pass filter, the limit is 36hz. How should I design a transfer function base on 36 hz limit? (pls ...
jjk's user avatar
  • 123
1 vote
1 answer
100 views

Generating sawtooth waveform

I am trying to generate a sawtooth waveform between 0 and 1 which would have a frequency upto 200 kHz. I run this piece of code within a Matlab function block - it works fine up to 10 kHz, but higher ...
SM32's user avatar
  • 366
0 votes
2 answers
39 views

Double pole, double zero: incorrect plot?

I can't seem to find where I'm going wrong here. Suppose I want a double pole, double zero system that looks like this: $$ \dfrac{\left(1+\dfrac{s}{\omega_z}\right)\left(1+\dfrac{s}{\omega_z}\right)}{\...
SM32's user avatar
  • 366
0 votes
0 answers
214 views

Battery nominal capacity estimation using Coulomb Counting and Matlab lsqnonlin

I'm trying to estimate the nominal capacity of a PV plant battery pack collecting SOC data from the BMS using current discharge. Once I've collected current, time and SOC data I put those data into ...
slow_breath's user avatar
1 vote
0 answers
61 views

Calculating the current through a time-varying RLC series resonant circuit

As shown in the circuit below, an admittance \$Y\$ consists of a series resonant circuit \$Y_m\$ and an additional capacitance \$C_0\$ in parallel. \$Y\$ is given by \$Y = j \omega C_0 + Y_m = j \...
Charly's user avatar
  • 659
0 votes
0 answers
71 views

Finding thermal resistance and capacitance from thermal impedance curve

I'm trying to calculate thermal resistance and capacitance from the thermal impedance curve with data taken from the thermal impedance graph using non-linear curve fitting method on MATLAB. The ...
wheats's user avatar
  • 1

1
2 3 4 5
12