Questions tagged [matlab]

MATLAB is a commercial numerical computer algebra system

Filter by
Sorted by
Tagged with
0
votes
0answers
29 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
votes
0answers
25 views

can protocol(vehicle network toolbox)

How can I send an image using CAN protocol in Simulink? I would like to see an exact diagram of how it’s done in Simulink. Thank you in advance
1
vote
3answers
65 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
17 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
21 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
33 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
38 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
31 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
23 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
21 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
26 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
46 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
447 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
28 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
20 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
67 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
32 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
32 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
30 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
17 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
39 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
14 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
41 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 ...
0
votes
1answer
43 views

Three Phase Rectifier Question (student)

I am new to this forum. I am an Electrical Engineering student working on a project. I am using Matlab Simulink/Simscape to perform simulations. Currently, I am working on a three-phase rectifier. (...
0
votes
0answers
12 views

How do I model a building as a load of a microgrid using Simscape?

I have to build a microgrid in Matlab, and I think the best approch is using Simscape, as part of a bigger project. The problem is that I don't know much of electrical engineering since I study ...
0
votes
0answers
17 views

Determining closed loop stability by nyquist criterion

G(s)H(s)=2.2/s(s+1)(s^2+2s+2) how to determine the closed loop stability using the nyquist criterion and how should I start implementing on matlab
0
votes
0answers
17 views

Determining synchronous impedance by Simulation of an Alternator Test using MATLAB/Simulink

I would like to know if there is a way to simulate an alternator using MATLAB/Simulink to obtain the synchronous impedance of any alternator by using Open-Circuit Test and Short-Circuit test. Is this ...
1
vote
1answer
38 views

Import Parametric Sweep data from LTSPice into Matlab

In LTSpice, I am running transient simulations with input 2 parameters (Amplitude and Frequency) being swept. The initial graph of all the data looks like this: Obviously it is hard to tell what is ...
0
votes
0answers
33 views

Differences between Adaptive Extended Kalman Filter and Extended Kalman Filter

I am developing a Simulink battery model to estimate state of health of a battery using MATLAB/Simulink. I want to use a Extended Kalman Filter for the model, but in one article I read that a Adaptive ...
-1
votes
1answer
39 views

Matlab RLC simulink and code help

In the circuit in the figure, the switch closes at time t = 0. What is the change of capacitor voltage and coil current in the range of 0-15 seconds? Show the solution in M. file and Simulink. Can ...
0
votes
1answer
41 views

Sawtooth Wave Fourier Series- MATLAB issue

I have what I believe is the correct equation for my sawtooth wave However, I am having issues with representing it in MATLAB. I keep receiving an error message saying "Matrix dimensions must agree. ...
0
votes
1answer
22 views

Time Auto-correlation function for a polar reutrn-to-zero waveform

I used matlab to calculate the time Auto-correlation function for a polar return-to-zero waveform to make sure that it has an ergodic property . I implemented the following formula as a function in ...
0
votes
0answers
21 views

SOC estimation using UKF in MATLAB/Simulink

I am building a battery model to estimate State of Charge using Unscented Kalman Filter, my doubt is how to initialize Em, R and C values to enter in lookup tables also values for the vectors Capacity,...
0
votes
0answers
24 views

MATLAB - Docking figure

Can I see the editor and the plot in MatLab (docked view) in parallel? This function doesn't work any longer and it was partially what I needed. ...
0
votes
1answer
40 views

How do you plot pulse positions for a simple sine wave in MATLAB?

If you goto 14 minutes and 53 seconds of this video: https://youtu.be/xfxQ-zBp2OQ you will see a plot of Pulse Width Modulation (PWM) and Pulse Position Modulation (PPM) for a simple sine wave signal. ...
0
votes
2answers
87 views

how can the frequency response of Matlab plot differ from the calculated one?

I have here a circuit of butterworth 2d order with a cutoff frequency of 38KHz from calculation: fc=1/(2*pi*sqrt(R223*R225*C190*C191))=38.73146646102262e+03 ...
1
vote
1answer
38 views

Noise Floor of ADC using PWELCH

While using MATLAB's Pwelch function, I am not able to match the noise floor of the "Modelled" ADC to (Delta)^2/6 {1 sided Spectrum}. ...
0
votes
1answer
51 views

offset binary from ADC to Decimal

Im trying to read data from ADC with ADC Inteface Im designing with FPGA. The data that coming out from the ADC is offset binary with 12 bits.. looks like that: I want to simulate this results using ...
0
votes
0answers
30 views

VCO in MATLAB with Arbitrary Phase Noise Profile

I want to model a complete PLL behaviourally and use MATLAB with an arbitrary VCO phase noise profile. My VCO has a known KVCO and a known Phase Noise at a 1MHz offset (say 130dbc/hz). I also know ...
0
votes
0answers
24 views

How to use the feedback function in Matlab when we have nothing in the feedback loop?

Matlab's feedback function is used to obtain the closed loop transfer function of a system. Example: sys = feedback(sys1,sys2) returns a model object sys for the ...
0
votes
1answer
83 views

Finding the overall transfer function and plotting root locus of a digital control system

I have started to learn about digital control theory and struggling with a particular diagram of a digital control system. The system is presented below: \$D(z)\$ is a digital compensator, \$G_{h0}\$ ...
1
vote
1answer
49 views

Matlab c2d(1/s) is different than z transform tables

c2d is used to convert a model from continuous to discrete time. The official doc states: sysd = c2d(sysc,Ts) discretizes the continuous-time dynamic system model sysc using zero-order hold on the ...
0
votes
2answers
67 views

Perfect component on LTspice

Is this possible to have perfect components in LTspice? No parasitic inductance, no parasitic capacitor, no resistor, etc? Is it not possible is it possible to make a model and model it with no ...
0
votes
0answers
22 views

Meaning of impedances in IEEE Test Feeders

I'm having a dilemma about impedances for different line configurations in IEEE Test feeders. What do these impedances mean for arbitrary configuration like Configuration 601: Do they represent phase ...
0
votes
0answers
29 views

Help modifying solar cell to include water cooling on simulink?

Hi, for my honours project at university i am basically doing an analysis of how water cooling a solar panel improves efficiency by decreasing the temperature of a solar cell. Part of my thesis ...

1
2 3 4 5
9