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
0answers
43 views

Transmitting power through Push-Pull converter [closed]

simulate this circuit – Schematic created using CircuitLab I have a circuit in Simulink that consist PV array and push-pull converter. The load is a simple resistor and with MPPT I extract the ...
1
vote
0answers
42 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
13 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
69 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
22 views

stm32 cube mx vs matlab simulink

I am a begineer to stm32 it has been two months since I began using STM32 for prototype building. I am currently doing a project which involves DSP. Today I came across an application notes in stm32 ...
0
votes
0answers
40 views

Why does my battery boost converter have such a large overshoot and take so long to reach steady state?

I am trying to simulate a lead-acid battery with a boost converter to a 150 ohm load in simulink but the load voltage has a massive overshoot and takes about 0.5 seconds to reach steady state, as you ...
0
votes
0answers
48 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
47 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
70 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
9 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
84 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
84 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
54 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
39 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 ...
1
vote
0answers
72 views

Phase Locked Loop Gain Design- FM Demodulation

Say I am trying to demodulate a message up to 25kHz in frequency, with a peak frequency deviation of 75kHz and a carrier of 1MHz, implying a 200kHz bandwidth using carsons rule. Would I design the ...
0
votes
1answer
54 views

Triggering the thyristor for the single phase AC voltage controller in MATLAB

I have been trying to study the output characteristics of a thyristor based single phase AC voltage controller through the model in the picture attached. Could anyone tell me what I could do to ...
0
votes
1answer
29 views

how to increase the size of value of XY axes in simulink scope?

as you have seen, I want to increase the size of the value shown in the x and y axes so it can be seen in the report,if you look at this figure, we barely see the value best regards
2
votes
0answers
92 views

Matlab Phase Locked Loop Design : FM Demodulation

EDIT: It seems I've asked too much at once here. I'll do some more studying and come back if I have more specific questions. I'm trying to design an analog phase locked loop in Matlab. I've read ...
-1
votes
4answers
72 views

How do I integrate a function and plot the result on Matlab?

I need to plot a function that has an integrate inside, but I don't know how to do this on Matlab. Function: \$ SOC(t)= SOC(0) - \dfrac{1}{Q}\int_{0}^{t}i_2(t)dt \$ time is in hours, current is in ...
1
vote
1answer
57 views

How determinate parameters for thermal-model battery (Advanced question about battery modelling)

I'm trying to simulate an electrical model based on Ceraolo battery model for lead-acid battery. The challenge in this model is to determine the parameters that describe it. I can understand and ...
0
votes
1answer
75 views

how to obtain the parameters of the step response within matlab in open loop?

I have step response in open loop of my model that i stored in workspace and I want to use Matlab to obtain the: T time constant, L dead time and A (see figure below).is there a command for that like ...
0
votes
1answer
41 views

step response data extraction from response data of a model(simulink)?

I want to design a PID controller with the step response method, so I needed to save the step response of my model in simulink in workspace (Vout) with saved format :structure wih time, I exctracted ...
0
votes
1answer
93 views

Solution for a set of non-linear equations

I am trying to solve the following equations for \$\delta\$ and \$K\$. I have tried Matlab function fsolve, but unsuccessfully. I also tried Wolfram Alpha and, ...
0
votes
2answers
70 views

shifting signal in simulink

I would like to know how to shift a signal in Simulink. The case is I am using PWM generator(DC-DC) and the input D is from a lookup table,a sine wave. From the PWM generator block i am taking the ...
0
votes
0answers
64 views

Constructing a reactive lighting system?

I've recently written a Matlab script to develop/simulate PWM output for RGB lights based on sampled audio input. I made this script with plans to actually construct a device that can run the ...
2
votes
1answer
59 views

What is the correct way to measure DC power at the output of a boost converter in a Simulink simulation?

I modeled a DCDC boost converter, and I would like to measure the power at the output of the converter, I do not understand much about simulation times, sampling, and this sort of thing, so I do not ...
0
votes
0answers
53 views

Pole-placement problem

I was following this example of implementing a pole-placement with an Integral controller. Matrices A_star=[-5 -3 0;1 0 0;0 -1 0] B_star=[1;0;0] desired poles -100,-8+i*11,-8-i*11 I know the ...
1
vote
0answers
84 views

Circuit Breaker Simulation in Matlab with Mayr and Cassie Equations

I'm trying to understand how to model arc circuit breaker. There is a simulation example as called Mayr and Cassie Circuit in Matlab&Simulink. I have examined Mayr and Cassie Differential ...
1
vote
1answer
83 views

Why simulink step response differs from matlab's step function?

step response is different in simulink showing oscillatory behavior unlike in matlab step function Transfer function Step response Block diagram in simulink Simulink scope
0
votes
1answer
43 views

Rayleigh distribution

Why do we have to multiple the complex uniformly distributed random variables by \$\frac{1}{\sqrt{2}}\$, for a Rayleigh distribution. In terms of when we want to transmit data across a Rayleigh ...
0
votes
0answers
28 views

Calculating cell resistance in dependence from cell temperature from CAN bus logs

I'm part of a formula student team. When we go testing we are logging the CAN bus data the car produces to further understand what the car is doing. We log all the battery cell temperatures/voltages ...
0
votes
1answer
46 views

Fourier Series, Transfer Function, Unexpected output

I am working on a project where I am trying to graph the output of input various functions represented by fourier series, applied to a transfer function of a bandreject filter. I am getting my ...
1
vote
0answers
43 views

Bluetooth System in MATLAB

There is a Bluetooth model in MATLAB that can be accessed using this command : commbluetoothfduplex Here its Link : https://www.mathworks.com/help/comm/...
0
votes
0answers
38 views

How to express the cross -correlation of two sequence in a system of linear equation Y=AX?

I calculated the cross-correlation of two signals as shown in my Matlab code and same I am trying to express as a system of linear equations as shown in the same code. Is my approach correct? ...
1
vote
0answers
60 views

Struggling to figure out why this capacitor voltage is huge

As you can see in this image from simulations on Matlab-Simulink: I'm tracking the blue signal (reference current) using this circuit Which is in this 400 kV HVDC link as "Snubber". So basically ...
1
vote
2answers
129 views

MATLAB Code to calculate intermodulation and Third Order Intercept (of an Amplifier)

My well annotated MATLAB code and plot is attempting to calculate the third order intercept of an amplifier. I have raw data of a non linear transfer curve, Voltage in (array) and the amplified ...
1
vote
1answer
34 views

PD compensator matlab

I have a little problem which I cannot understand, control theory is not my specialty but I have been reading on it lately. I have a buck-boost converter which I modeled on matlab and I am trying to ...
0
votes
0answers
29 views

raw BER and Residual BER

I am simulating a full duplex Bluetooth communication system using MATLAB found here. This system calculates what is called raw BER and Residual BER . So what is exactly meant by these two BER ...
0
votes
0answers
22 views

DSTATCOM Placement, reactive power appears to have greater affect on bus voltage when moved further away?

I have created a simulink model of a residential LV Distribution Network, with 14 buses, various loads and PV Solar injection on some of the buses modelled as constant real power injection. The ...
0
votes
1answer
110 views

Sawtooth Wave Fourier Series - General derivation and Matlab issue

I am working on one of my first Matlab projects. I am trying to graph a sawtooth wave with 10-V Pk-Pk, 0-V average value. 50% duty cycle, 2.5 khz. I first attempted to find a general equation for ...
1
vote
1answer
34 views

MATLAB - Allowing only numeric input using Exception Handling [closed]

I am trying to handle exceptions gracefully such that when a user enters a character, when a number is expected, he is notified with a custom warning/message. I know that the try, catch has the ...
0
votes
0answers
72 views

Ltspice2matlab error: Bad tag name found!

Hi I want to convert the raw data generated from LTspiceXVII to variables in Matlab. I am using the LTSpice2Matlab function....
0
votes
0answers
32 views

If a current from a 12-pulse rectifier pass through this circuit, should the capacitor absorb energy?

I'm trying to give a "triangular" form to the incoming current like this: Where the yellow signal is the reference and the cyan one is the actual current. However, in order to track this current I ...
0
votes
0answers
36 views

Why output voltage of a 12-pulse rectifier oscillates with a resistive load?

I'm simulating a simple 12-pulse rectifier with just a resistive load at the output and altough I get every pulse, it seems that they are oscillating if I zoom out the signal. This is the system I ...
0
votes
2answers
30 views

Sine Function on Simulink

I'm trying to add the following function on my Simulink model. where C, B, and N are already variables in my file. Is the correct way to multiply omega by the gains 3N and N/2 an input that into the ...
0
votes
1answer
73 views

DATA for Lithum ion battery

I am working on RUL for lithium ion battery and have downloaded few data sets for the same, but facing difficulties in understanding the data. the link is below, http://ti.arc.nasa.gov/c/5/ I am ...
0
votes
1answer
57 views

I2C Communication to the Matlab from Sensor board(8051 µC)

I like to connect my board to Matlab through I2C communication(I2C-USB cable). Is there any library or example scripts in matlab to do it? What are the procedure to do it. for example, I connected ...
0
votes
0answers
41 views

Pso based Maximum Power Point Tracking

I am in trouble with MATLAB FUNCTION while getting V and I from block input and use it in FOR LOOP and output D for boost converter. I write a PSO based MPPT for a pv array in MATLAB FUNCTION block ...
0
votes
0answers
86 views

Why if I change the sample time in Matlab/Simulink modifies results in a huge way?

I'm having trouble with the circuit I'm studying but in order to modify some values, I want to get out this question of my mind. * Example 50e-6 * Example 50e-7 * Example 50e-8 I use a S-Function ...
1
vote
1answer
280 views

Issue with “Simulink does not support code generation”

I have something similar to this simplified following block diagram on Simulink. It looks rather messy. I want to replace a 3-point summing block with a function block, while keeping the same ...