Questions tagged [matlab]

MATLAB is a commercial numerical computer algebra system

Filter by
Sorted by
Tagged with
0
votes
0answers
22 views

Phase lag in output 3 phase 2-level inverter ouput

I am trying to simulate a 3-phase, 2-level inverter connected to the AC grid in MATLAB, using sinusoidal PWM pulses generated by taking reference from grid voltage. source voltage(phase rms)=220v; ...
1
vote
1answer
19 views

How do I combine outputs in Simulink by changing a specific parameter?

I am studying a Cruise control system, and I want to change the coefficient of rolling friction and put them together in one graph keeping the remaining parameters the same. How do I store all the ...
1
vote
0answers
11 views

Process time-independent data in Simulink for VHDL synthesis

I am new to the topic but want to implement some simple algorithms processing metric data in simulink and later generate some vhdl from it. I am using the Matlab/Simulink environment with the Intel ...
0
votes
0answers
40 views

How to set solver for control loop simulation?

I have been developing a simulation of the field oriented control of the three phase squirrel cage induction motor (control is oriented by the rotor flux). I have been using the Xcos which is an ...
-8
votes
0answers
27 views

Buck Converter design [closed]

Design a buck converter to produce an output voltage of 18 V across a 10-Ω load resistor. The output voltage ripple must not exceed 0.5 percent. The dc supply is 48 V. Design for Continuous inductor ...
1
vote
1answer
37 views

s-domain to z-domain conversion in MATLAB

I want to convert a transfer function from s-domain to z-domain. But, by keeping variable i.e without assigning values to variables. I tried to do it with s2z command but it demands numeric input, not ...
0
votes
1answer
30 views

4*4 reverse matrix code in matlab wich has variables

Here is the system of which I have found the state space equation. I need to get the transfer function. [SI-A] is a 4x4 matrix and it's so hard to get the reverse ...
0
votes
1answer
44 views

How to prevent algebraic loop in the control loop simulation?

I have been developing a simulation of the field oriented control of the three phase induction motor. The simulation is developed in the Scilab/Xcos (v5.5.2) which is a free of charge Matlab/Simulink ...
0
votes
0answers
18 views

why my “pid” parameters(Kp,Ki and Kd) values are not showing up in pidtuner tool?

I am trying to implement PID controller in matlab,but pid parameters(Kp=350,Ki=300 and Kd=50) values are not showing up in my pidtuner app for base line response as shown highlighted in attached photo ...
0
votes
0answers
17 views

SIMULINK :Frequency Multiplier

I'm working on implementing Armstrong Modulator . I successfully implement the narrow band block but I'm struggling into finding a solution to multiply the frequency of my modulated signal . Any ideas ...
4
votes
1answer
120 views

FFT of time-compressed signal not outputting correct amplitude spectrum

Given a signal g(t) <--> G(f), a time-compression g(at) <--> 1/(abs(a)) * G(f/abs(a)), but not with the FFT as I've found out. Performing the FFT on g(a*t) doesn't scale the amplitude of ...
-2
votes
0answers
25 views

Stm mat target external mode demo example(nucleo f446ze) not working

I am using STM32 Nucleo F446ZE LQFP-144, MATLAB 2020a, STMcubeMX 5.6.0, Keil v5.31.0.0. STM MAT TARGET rev 2.5. I am using ...
0
votes
0answers
30 views

Calculate bandwidth of wide-band FM from spectrum graph

I want to calculate the bandwidth of my signal output from the graph it results from application of the FFT. I can apply the Carlson formula knowing that I have all the parameters :$$B = 2(\beta +1 ...
3
votes
2answers
178 views

Does the bandwidth of an NBFM modulation change depending with the modulation index?

Hello electrical community ! I'm learning about FM Modulation ,especially with narrow Band FM.And I was wondering if the index of modulation BETA affect the bandwidth of the modulated signal. In fact ...
3
votes
1answer
33 views

SIMULINK: The spectrum of the modulated signal remains unchanged despite modification of the modulation index

I try to implement a frequency modulator. From what I know, the more I vary the modulation index (which is set by the gain block here,) the more the spectral lines should increase in number. When I ...
0
votes
0answers
18 views

Linearization of nonlinear plant with system identification in Matlab

I hope this question fits in here and there is someone who can maybe help me. I am new to control theory and I have a very complex Simulink model which is nonlinear. I want to have a linear ...
1
vote
1answer
46 views

how to implement while loop with time condition in matlab?

I knew how to set a a while loop in Mikrocontroller, but when I tried to Implement it in matlab /simulink, my computer gets stuck and never get out of the while loop and does not do anything. here is ...
1
vote
0answers
93 views

Why is the prewarping not working as it should?

Just playing around with the 'c2d' command from matlab and trying to convert a continuous 2nd - order lowpass Butterworth function to a digital one which has the specs of Fc = 20e3Hz and Fs = 44....
0
votes
0answers
23 views

Calculating the Running Corrleation of two signals in Matlab

I am currently using https://www.eecs.umich.edu/courses/eecs206/public/lab/ to advance my matlab skills. Sadly I am stuck at lab2 task 2. First, i cant run the pcode file to get the proper solution ...
0
votes
0answers
40 views

Serial Communications delay

Hopefully this is more of an electrical engineering question than a MATLAB question, but I don't understand a system response I'm getting. I recently got 2 Arduino Due's and configured 1 in MATLAB ...
0
votes
0answers
51 views

Restoration of time-shifted audio file using matlab

The two stereo channels of audio file are time shifted. Which is the easy model to restore the file to the original? I have a partial solution something like: Loading file like, ...
0
votes
0answers
61 views

Matlab GUI interfacing with pic18f4550

My project consists on collecting usb data form the uC PIC 18F4550 to show them using GUI Interface well I am using for the simulation MikroC for PIC programmation as well as Proteus, I compiled my ...
1
vote
1answer
29 views

Difference in phase response between circuit simulation and MATLAB

I have the following low pass filter: simulate this circuit – Schematic created using CircuitLab When simulating through Circuitlab, I get the following phase response (I think you should be ...
0
votes
0answers
44 views

Plotting the radiation pattern of a dipole antenna using MATLAB

I want to plot the radiation pattern of a half wavelength dipole antenna using MATLAB. But in dB scale, the plot has undesired peaks. The code is shown below: ...
1
vote
3answers
67 views

Finding the capacitance of a full wave rectifier

I am currently learning electrical engineering,and I'm having trouble in finding the capacitance of a full wave rectifier so that it would match the graphs below. From the image below, the input ...
0
votes
0answers
21 views

Calculation of Initial Charge Deficit and Initial State of Charge

I am working on Simulation Model based Lithium-Ion Battery Development with MATLAB/Simulink. For the battery model, I need to define Intial Charge Deficit , which is a phenomenon which every battery ...
0
votes
0answers
22 views

Gradient based optimization for microwave filter design

In S. Amari's paper - Synthesis of cross-coupled resonator filters using an analytical gradient-based optimization technique(2000), for reducing a filter's unnecessary cross-couplings, the matrix \$[...
0
votes
1answer
38 views

Matlab transfer functions

I used the "c2d" to discretize a transfer function initially but MATLAB automatically took it as zero order hold because I didn't specify any kind of hold. The result for the zero order hold is ...
0
votes
2answers
40 views

Blank figure in MatLab [closed]

[This is my MatLab code and I am trying to take a plot of what I have done, but when I run the code the plots are all empty Do you know how I can fix it? ...
0
votes
0answers
15 views

Modelling internal fault in a transformer

I am doing an analysis of faults in transformers and i need to model internal faults in a transformer. Please do advise on how to model internal fault in Simulink. Thanks in advance
1
vote
1answer
36 views

Centroid from calculated root locus is different to the one from MATLAB

Hi all hope someone can help me here. My problem involves the transfer function G(s)=(s+32.8)/((s+2.8)(s+5)(s+27.8) ) As far as im concerned the centroid is ...
0
votes
0answers
28 views

How to solve Laplace and Poisson's equation using Monte Carlo simulation for a parallel plate cpacitor?

I know how to solve for voltage and field using Laplace and Poisson equation for a simple parallel plate capacitor. But I cannot get any idea on how to proceed with Monte-Carlo simulation using MatLab ...
0
votes
0answers
30 views

Matlab and pic integration

i' m working in an exercise of integrating between pic16f877a and Matlab GUI. Although spending much time searching, i still have not found out how to display ADC value on a GUI panel. Hope you could ...
0
votes
0answers
22 views

How do I determine the parameters for a battery equivalent model?

I have these pieces of information of a battery from which I want to estimate the battery equivalent RC parameters. Let it be first order or second order. I have a performance curve detailing battery ...
0
votes
1answer
27 views

how to plot on the same bode plot a manual function plot() with function bode()?

I have a a transfer function that I plotted manually using Plot(w,abs(f1(w)))(plotted for a digital filer since I dont have signal toolbox) and I have another function that I used directly bode(f2(s))(...
0
votes
2answers
54 views

Plotting a bode gain plot with the slope in Excel

I am not an expert in Excel, and therefore, I want to know if there is a way of including the slope (dB/decade) in a bode gain plot in Excel or any free software (that allows to first input the ...
3
votes
4answers
476 views

How to pick correct filter for a given signal processing task?

I did a study on digital signal processing and I found many theories. But I don't know how to figure out which filter to use when I get a practical signal processing task. Is there a procedure for ...
0
votes
1answer
30 views

uniform quantizer for sine wave with amplitude -1 db

i have a signal sine wave with an amplitude of -1 db The quantizer step Δ is 1/7. The middle quantization level is 0 and the other levels are ±kΔ,, k=1-7. the output is 4-bit unsigned integer which ...
0
votes
1answer
22 views

why plot of ''To Workspace'' of matlab does not fit the scope of simulink?

I am simulating a complete system for control loop. since I need the data to be saved on matlab, I wrote a small code that saves the data in matlab and I could plot. my system has a sample time of ...
1
vote
1answer
30 views

SCC for Synchronous Generator Using Matlab

What should I put in ''Three-Phase Programmable Voltage Source'' block ?
0
votes
0answers
74 views

Open circuit test and short circuit test

The results I got are close to the required answer, but there is a question asking for drawing the open circuit and short circuit tests characteristics .. I tried to solve it, but Isc and Vt (in open ...
0
votes
1answer
34 views

Simulate Step down chopper circuit using any Electrical Engineering software

Here's my attempt: Could someone tell me where is my mistake ? Or simulate answer the question using any other software,please ?
1
vote
1answer
36 views

Energization angle of a transformer

I am trying to understand transformer behavior for a project that i am currently doing. I am trying to simulate characteristics of transformer using simulink models. In the various papers that i have ...
1
vote
0answers
33 views

simulink transform integer to pulse (seen by scope)

I have a custom M function block on simulink as follows with input (a) and output (c). correspond to input (a) output (c) maybe zero or else. I want to transform this output integer to pulse (can be ...
0
votes
0answers
21 views

Problem with PMSM motor model in Simulink

Good afternoon, I have developed a Vector Control for a PMSM motor in Simulink using Simscape Electrical but my motor is not spinning. I have tried applying various speed values but nothing happens. ...
1
vote
3answers
46 views

Demodulation/filtering of a binary signal

I'm simulating an amplitude modulation system on Matlab and have got to filtering the demodulated system. The original data to be sent was a 1x100 set of binary data. Which was then applied to a ...
2
votes
1answer
44 views

Compute electric field in complex 3D geometry

I have a CAD file with a pretty complex geometry. I would like to compute the electric field generated by this geometry when a specific charge density is defined. I guess I will have to go through ...
0
votes
0answers
6 views

How to find and change the label of the Truth Table present in Simulink through command window in Matlab?

I want to change the function of the truth table present in Simulink through the command window of Matlab. I am able to do it but, when I try to run the simulation it gives an error of 'tt_blk_kernel'....
0
votes
0answers
15 views

Why is the torque non-constant Torque issue in my FOC algorithm (Simulink)?

I am trying to develop an FOC algorithm in Simulink (see image attached) but I am having extrange results in my simulation. My torque is not constant, when it should, but varying periodically (see ...
0
votes
0answers
48 views

Can't simulate simulink model

I'm trying to simulate the following chopper controlled dc motor in MATLAB Simulink using a PI controller. Now without the freewheeling/flyback diode across the motor terminals I can simulate the ...

1
2 3 4 5
9