Questions tagged [matlab]

MATLAB is a commercial numerical computer algebra system

Filter by
Sorted by
Tagged with
1
vote
0answers
282 views

Matlab and HDL code generation

I have a project involving audio on a Xilinx Spartan6 FPGA. The goal of the project is to make an audio processor using HDL (mostly educative and for fun). It's basically a pipeline of audio effects ...
0
votes
2answers
1k views

How to plot state space variables against time on unit step input?

I have a system defined in state space model with the following matrices A = $$ \begin{matrix} 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ -1280 & -...
2
votes
1answer
108 views

Why my low pass digital filter amplifies in the passband?

I'm trying to implement a 10th-order Butterworth Low Pass digital filter on my MCU. To find the coefficients I used Matlab's Filter Design & Analisys Tool. So I create two little scripts: in the ...
0
votes
2answers
2k views

MATLAB How do I pass a signal into a low-pass filter in matlab?

I'm having trouble figuring out how to pass a signal into a low pass filter using MATLAB. I am given a .wav file and am following instructions on how to remove high frequency noise compenents from ...
0
votes
1answer
262 views

IEEE 4 machine system: Need help in computing the bus admittance matrix

I need help in computing the bus admittance matrix for the following Kundur's 4 machine 2 area system: ...
0
votes
1answer
422 views

Bandwidth analysis for photodiode TIA using matlab

The schematic below show a photodiode TIA circuit, and i tested by using an led as a light source, and by connecting the PCB to the osscilloscope using the bnc connector to see the response of the ...
0
votes
2answers
308 views

Changing ltspice export from cortesian to voltage values when using AC anlysis

I'm trying to export a waveform from ltspice into an excel document to be later graphed using Matlab. I am simulating a simple series bandpass filter and when I export the voltage across a capacitor. ...
0
votes
1answer
255 views

resetting Arduino from matlab

I'm using serial communication with Arduino and Matlab, and I need a way to reset Arduno from Matlab once a serial connection is made. I'm using Leonardo, and I understand that it uses a virtual ...
0
votes
1answer
51 views

Motor Flux in Wb

I'm trying to simulate a squirrel cage motor using asynchronous machine SI units in simulink The problem is when I view stator Flux(both q and d) its unit is in V.s (volt second which is used for ...
-1
votes
1answer
200 views

Image reading in FPGA

I'm a newbie to FPGA stuffs and I'm using Zybo board.I need to read image stored in a hex file by FPGA and save the processed result in a hex file again. How can I implement this? How can I connect ...
1
vote
2answers
614 views

IP2 1dB compression point representation and formula

I'm trying to calculate the 1dB compression point in a second order interception. I did find many examples using third order, however, for a second order, I couldn't find much. In Matlab I could ...
0
votes
1answer
220 views

How do I benchmark and compare Simulink models when it comes to resources usage and performance?

I am trying to implement a model with different levels of complexity in Matlab Simulink. I would like to perform a comparison between the different models in terms of computational cost, resource ...
1
vote
2answers
1k views

Plotting step and impulse responses on Matlab

I'm trying to graph a simple response function: 1/(1-0.5s^-1) Now, I know that the function can also be written as: s/(s-0.5) ...
0
votes
2answers
3k views

Sorting using verilog

Respected members, I want to use a sorting technique which sorts N numbers using Verilog taking minimum clock cycles(less Time Complexity) as possible. Thus, I want to get some help regarding ...
1
vote
1answer
232 views

Why is the magnitude of the transfer function for my plot showing a band-pass filter, but a strange phase plot?

I am trying to plot a transfer function, and plotting the magnitude appears to show that it is a band-pass filter, which seems reasonable. The problem is, the phase plot does not match with the ...
0
votes
1answer
1k views

Multiple feedback low-pass filter design

I'm trying to design second order multiple feedback low-pass filter with cut-off frequency at 1500 Hz and Chebyshev approximation. Transfer function for this scheme is defined as: Where: And ...
2
votes
1answer
208 views

MATLAB PID Tuner producing the wrong output?

I'm trying to apply a PID controller to my transfer function in MATLAB to get the step response, bode, pole-zero, etc. This is the code I'm using to create the ...
2
votes
2answers
234 views

Convert PID parameters to Q15 format

I have calculated the transfer function of my system to apply a PID to it. With MATLAB and the PID Tuner tool I got the Kp, Ki ...
0
votes
1answer
508 views

Obtain audio information from mic and play in MATLAB

I am trying to make a basic VoIP implementation and I am stuck obtaining sound samples from the mic and playing the read data on a computer. I tried to sample the voice from the microphone and send it ...
2
votes
1answer
322 views

Least Square Fit - Transfer Function

I have here this continuous transfer function: $$\frac{Y(s)}{U(s)} = \frac{s+3}{s^3 + 12 s^2 + 39 s + 28}$$ Passing this tf to discrete domaing like this: ...
0
votes
1answer
45 views

How to take the sample out of a impulse function

I have a system which is built from taking the transfer function. Lets call it "sys". Now I found the impulse response for this system by taking, ...
0
votes
1answer
286 views

How to calculate resistance, inductance, capacitor value for dc-dc buck-boost converter

How to calculate resistance, inductance, capacitor value for dc-dc buck-boost converter when using with Solar panel? I am working on a project. Charging battery with solar panel with/ without MPPT. ...
-2
votes
2answers
554 views

Need help understanding this PWM Generator [closed]

From what I was told, this is a PWM generator. I am not exactly sure how this works. Can someone explain to me how this works? Whats the use of the repeating sequence and sine wave going into the ...
0
votes
1answer
43 views

measuring the BER for various input data rate over a custom made channel

I have a wireless channel, for which I need to pass binary bits and input and measure the BER at the output. The problem for me here is varying the data rate at the input. How can I represent the ...
-1
votes
1answer
88 views

Any ideas for a hardware to do AM and FM modulation? [closed]

I'm trying to do some signal processing (AM/FM Modulation) for signals from 0 - 60kHz. Any recommendations for hardware? Preferably something I can use MATLAB with (or Python) as I'll most likely be ...
0
votes
1answer
284 views

Estimation of impedance in MATLAB

Good Morning, I'm developing a bio-impedance system. To perform the impedance calculation, I am trying to use the method described in this article, and mentioned below: http://www.ijirset.com/upload/...
0
votes
1answer
208 views

How to plot 40GB hspice output?

I don't know other software to plot the file and get results put into the report. Matlab hspice toolbox is good for small size files, but I am not sure it is fine with large size ones. Can I plot ...
0
votes
2answers
451 views

LC Filter Active Damping

I have a Matlab simulation which implements vector control with an LC filter The simulation comprises a voltage source inverter feeding an LC filter model whose output is passed to an induction motor ...
0
votes
1answer
2k views

How to plot Smith chart

I need to plot Smith chart, having frequency, VSWR, reflection coefficient and phase. I'm aware there's smithchart command in matlab and as an argument I should use ...
3
votes
1answer
200 views

Inferring RAM ALTERA from vhdl of HDL CODER

I've generated vhdl from Simple port RAM and Dual port RAM in simulink and I tried to synthesize with Quartus 14 and 16 on Arria V and 10. The option to allow RAM for any size is ON but I don't ...
0
votes
1answer
526 views

Can ModelSim PE Student Edition co-simulate with MATLAB/Simulink?

I successfully simulated my Verilog code in ModelSim-Altera Starter Edition. I want to incorporate MATLAB/Simulink in my simulations. However, I failed. I have this error in ModelSim-Altera Starter ...
1
vote
0answers
146 views

Is MATLAB HDL Coder viable for complex FPGA designs?

I'm building a feed handler for an FPGA and, having never done this before, I'm wondering if I would be OK using MATLAB (HDL Coder) as an alternative to VHDL. Is this generally a viable options, do ...
0
votes
1answer
254 views

Charging a capacitor. Calculations and PSpice simulation don't match

I started using PSpice only yesterday and I have a problem with a really simple circuit. Vs = 2 V R1 = 1 kΩ C1 = 50 nF The switch closes at t = 0 (it's not really needed). After running a Time ...
0
votes
2answers
2k views

How to perform System Identification on DC motor?

I'm taking a class on control theory, and for our final project we've been assigned to choose whichever system we want and develop a controller for it. I've choosen to perform RPM control on a simple ...
0
votes
1answer
65 views

How can I plot the voltage across any component by Matlab?

I want to ask how can I plot the voltage across any component by Matlab? I have a simple RLC circuit and I want to plot the voltage across the 3 components and I didn't use Matlab before. I found the ...
0
votes
0answers
473 views

Filtering and Delay Compensation in Matlab and Simulink

I have built a FSK modulator and demodulator in Simulink. Everything is working fine except the received signal after the channel has short spikes, which are introducing a short pulses in the ...
2
votes
1answer
679 views

How do I calculate impedance of a (bypass) capacitor (for simulation)?

I wanted to build a simulation of bypass capacitors in Matlab, especially to play around with pairs of different valued caps. So I thought I just take a model of a real capacitor as series connection ...
0
votes
1answer
140 views

Why is my simulation results are not matching to the theoretical data?

I have a circuit You can down here I am trying to find out the transfer function of Voltage across L3/Input Voltage. When you probe at L3, you can see the voltage ...
-2
votes
1answer
291 views

Object tracking project [closed]

I have to create a system that can track an object in the air and shoot a projectile at it. This in on a small scale. I want to use an ultrasonic sensor because I know nothing about vision algorithms. ...
0
votes
1answer
590 views

How do I generate the described pulse signal in Matlab (Simulink)?

I want to implement the following signal: I(t) = 500*(sin(pi.t/0.3))^2, t belongs {0,Ts} = 0, t belongs {Ts,T} Here, T = 0.8 and Ts = 0.3 The code I tried: ...
0
votes
2answers
276 views

How to design a passive filter from poles and zero of a transfer function?

I am using octave/matlab to get the coefficient of numerator and denominator of a filter with filter command such as butter or ...
2
votes
1answer
638 views

How to shift signal phase in matlab from this circuit?

The circuit shown is in matlab. Sinus signal is provided by vpin by connecting from PCI. The sinus signal is looks like on the scope. The problem is i want to shift signal phase, from the picture ...
1
vote
1answer
270 views

How to test PLL for step input change in phase

I wrote a simulation for second-order PLL and I would like to test it with an input to see whether my PLL can track the phase. I would like to change the phase of my sinusoidal signal with step with ...
0
votes
1answer
350 views

How to extract ADS marker information to matlab?

I am new to ADS software and I want to extract marker values to MATLAB. Is there any efficient way to do that? For example,
-1
votes
1answer
140 views

Drawing Smith Chart from Network Analyzer file

I have a file as a .dat format taking from network analyzer. I want to plot Smith chart graph. The file has 3 columns which are frequency, S11(linear value), S11 (ang value) respectively. How can draw ...
0
votes
2answers
499 views

Simulation of OCC, for a 3 phase Alternator using MATLAB/Simulink

I was wondering if there was a way simulate a 3 phase alternator on MATLAB/Simulink and obtain its Open Circuit Characteristics by conducting an Open Circuit test. Also is there any other possible ...
4
votes
1answer
614 views

In a Delta-Sigma ADC, does noise shaping bring the noise to the signal's frequency?

I'm trying to understand the Delta-Sigma ADC. It is known that it pushes the quantization noise to be in the higher frequencies (noise shaping). Since I don't quite understand how this works, I ...
0
votes
1answer
445 views

Error in powergui block in Simulink involving vector dimensions.

I am designing a DC machine in Simscape, but when I try to run the simulation there is this weird error: "Error in port widths or dimensions. Input port 2 of 'simulacaodcmono/powergui/...
-1
votes
1answer
166 views

Direct Torque Control of Induction Motor (DTC)

I was working on a project on how to design a classical Direct Torque Control drive DTC but there is a ceratin point that i can't understand. How can we calculate the Reference values of the torque ...
4
votes
4answers
442 views

How can a transfer function with only real poles show an overshoot in the step response?

I am trying to simulate the circuit below on SIMSCAPE, and its behavior is different in the simulation and in the real world. The simulation shows an overshoot, while the measurements I made do not - ...

1
4
5
6 7 8