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

State Space Control of 3 DOF SISO MBK system

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 ...
0
votes
1answer
23 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
62 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
40 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
37 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 ...
0
votes
0answers
23 views

Radar signal demodulation for a set of data [closed]

I have multiple frames (captures) of a recieved radara signal of a moving object. the radar signal comes out like data points. I know that this recieved signal contains the transmitted signal. ...
2
votes
1answer
49 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
28 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
39 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
53 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...
-1
votes
0answers
46 views

Convolution in MATLAB

I need to be able to write a code that convolves the rect((10^-9)t-.5) function with (1/(RC))2.72^(-t/(R*C)) in MATLAB. I am specifically looking to do this numerically, not by graphing. Below is my ...
0
votes
0answers
21 views

How to show electric field due to the infinite line charge on matlab

How can I show that the electric field vector and electric field magnitude which is occurred by infinite line charge? by the way I am trying to prove that this electric field is independent for z (we ...
0
votes
1answer
30 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
13 views

MATLAB how to split columns without space or operators? [migrated]

i read a data from text-file with 20000 rows: 0000 1000 0110 0000 0110 1101 1010 0200 0011 .... I want to split columns to four 20000x1 Matrix. How can I do it? ...
0
votes
0answers
29 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
23 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
34 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
68 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
22 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
74 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
56 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
47 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
57 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
94 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
10 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
155 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
130 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
53 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
78 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
97 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
37 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
116 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
74 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
63 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
132 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
94 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
94 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
110 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
65 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
91 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
54 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
110 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
134 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
47 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
51 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
55 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/...