Questions tagged [matlab]

MATLAB is a commercial numerical computer algebra system

Filter by
Sorted by
Tagged with
-1 votes
1 answer
2k views

Filtering a frequency and its harmonics (Matlab)

I want to remove all the frequency components from a .wav file except those within \$\pm 25\$ of \$523 \ Hz\$ as well as its harmonics. Attempt: I used a high pass filter first to suppress ...
Merin's user avatar
  • 37
0 votes
1 answer
945 views

Gaussian function power spectrum (Matlab)

I am trying to plot the power spectrum (\$|FT(f)|^2\$) of a Gaussian function, and overlap it with the theoretically expected spectrum calculated from the Fourier transform pair: \$e^{-\alpha t^2} \...
Merin's user avatar
  • 37
0 votes
1 answer
508 views

Generating FFT on data recived from 20Amp(ACS712) current sensor using arduino & processing IDE

Currently, for generating FFT on the data received from ACS712,i used the following method: first the data is sent to the Processing IDE from the sensor via arduino. the processing code converts the ...
Rohits112's user avatar
0 votes
1 answer
884 views

Gaussian Function Fourier Transform (Matlab)

I am trying to write my own Matlab code to sample a Gaussian function and calculate its DFT, and make a plot of the temporal Gaussian waveform and its Fourier transform. According to the FT pair: \$ ...
Merin's user avatar
  • 37
3 votes
2 answers
736 views

Band-pass filter with a given impulse response (Matlab)

I am trying to pass a .wav sound waveform through a band pass filter whose impulse response is given by \$ h(t)=50u(t) \exp(-10t) \sin(2 \pi 440t), \$ I have imported the file into Matlab as follows:...
Merin's user avatar
  • 37
1 vote
1 answer
562 views

Building a Shunt active power filter in the synchronous reference frame

This schema representing a shunt active power filter in the synchronous reference frame, I'm focusing on the Area in the red box ! Schema I want to learn how to build my own shunt active power ...
KADEM Mohammed's user avatar
-3 votes
1 answer
101 views

Simple Matlab Problem [closed]

I just started working with Matlab last week, so I'm very new. After searching for a while, I realized that I don't know how to fix a Matlab script that I'm working with. The problem is given below. <...
RoryHector's user avatar
-2 votes
2 answers
763 views

How to do level shifting signal in simulink matlab?

i want to do level shifting signal from -5..5v to 0..10v in simulink.. anyone know how to do that in simulink? thanks
rezhart's user avatar
  • 11
0 votes
1 answer
766 views

How to implement a MIMO model with state space block in sumulink?

I want to implement an state space model with 4 inputs and 4 outputs at simulink. But the state space block has only one input and only one output. So what can I do here?
gustavoreche's user avatar
0 votes
1 answer
41 views

What is the difference in the input from inbuilt microphone and an external microphone amplifier?

I wrote a MATLAB script interfacing my laptop's inbuilt microphone to calculate the dbA levels of noise in my classroom. (un-calibrated, as of now) I want to now use this dbA calculation script on ...
Shruti M.'s user avatar
0 votes
1 answer
279 views

Transfer function just from data?

Is Matlab able to formulate a second order transfer function from just a dataset of 2 inputs and their 2 outputs or I still need to conduct a step response on my MIMO model to calculate the TF ...
Leb_Broth's user avatar
  • 103
0 votes
1 answer
586 views

Interfacing Microphone amplifier with MATLAB A-weighting filter

I am working on a project that essentially would be used to measure the Noise produced by ceiling fans and regulate the speed if the noise interferes with speech levels. For the first phase of this ...
Shruti M.'s user avatar
0 votes
1 answer
1k views

MATLAB analog filter impulse response

MATLAB's impz is used to get the impulse response of a discrete time filter. freqz is used for the frequency response of a ...
Void Star's user avatar
  • 1,471
0 votes
1 answer
9k views

2nd order Sallen-Key Bandpass filter design in Matlab

I'm trying to design a Sallen-Key BPF within Matlab. With the documentation found on ti: http://www.ti.com/lit/ml/sloa088/sloa088.pdf, I studied and understood the basic. As for the design: The ...
user3488736's user avatar
0 votes
1 answer
122 views

Feedback Control: Unexpected result for block diagram simplifications using matlab

I made some simple calculations regarding block diagram algebra. The problem is that I don't get the same result using matlab. Here is the system with it's corresponding blocks: $$H_1 = z+2$$ $$H_2 =...
fjp's user avatar
  • 241
0 votes
1 answer
561 views

designing PID controller using Ziegler Nichols algorithm

I'm trying to use Ziegler Nichols algorithm to design PID controller for the following transfer function: G=w^2/(2*xws+w^2), w=1 , x=0.2. so since the step response for this function is a second ...
Oday Ali's user avatar
0 votes
1 answer
5k views

Setting up a PID controller in Simulink for an Arduino example project

On the internet I found this "Arduino PID Example Lab" as an introduction to PID-contole. I set up the hardware and it is working like it is described in the document. Since it is possible ...
kimliv's user avatar
  • 628
0 votes
2 answers
241 views

How to perform a \$\dfrac{1}{s+a}\$ type integration in MATLAB?

Currently, I am integrating an ODE of the form \$\dot x = f(x,t)\$ in MATLAB using the function ode45 This is equivalent (in block diagram form) as passing \$\dot x\$ through an integrator \$\dfrac{1}...
Fraïssé's user avatar
  • 1,526
0 votes
1 answer
419 views

Sampling frequency and FFT

I have tried this example code for sampling and FFT in MATLAB, but I have noticed that when the signal frequency becomes closer to nyquist frequency , some errors ( small frequency components near the ...
rcmalli's user avatar
  • 103
1 vote
1 answer
301 views

Controls: Getting the feedback transfer function of a Plant and Controller

I'm designing a function in Python similar to MATLAB's 'feedback(T)' command. I know modules already exist, but it's something I want to do for myself for fun. However, I am running into issues. Let's ...
Collaptic's user avatar
  • 113
0 votes
0 answers
145 views

How to study temperature influence on Li-Ion Batteries?

I would like to study and simulate the influence of the ambient temperature on a given Lithium Ion Cell. Behavior while charging or discharging for both internal Resistance and capacity. My Battery-...
Medi1Saif's user avatar
  • 185
2 votes
1 answer
4k views

How to calculate poles of overdamped, 2nd order system if only given experimental data?

I have been looking about how to calculate poles if I have experimental result of a step response in Matlab that looks like an overdamped system. So far I only found information (through internet or ...
vxs8122's user avatar
  • 243
0 votes
1 answer
4k views

Step response of feedback system

We have a feedback system F(s) as in this figure: and this is the step response of G(s): and H=10. F(s): We got the root locus of the system F(s) as this: then we determined the gain at ...
ammar's user avatar
  • 619
1 vote
2 answers
681 views

Application to solve for Fourier series coefficients?

Does anyone know a way to solve for Fourier series coefficients using Matlab, WolframAlpha, random web app, etc.? For example if I wanted to solve for and plot the Fourier series coefficients for the ...
Austin's user avatar
  • 315
-1 votes
1 answer
531 views

solve a problem with simulink

I have this problem which i want to solve using simulation. How i think it shall work in Simulink( i am not sure this is the way to do it) : -measure power and then decrease the voltage and increase R ...
TraceKira's user avatar
  • 111
0 votes
1 answer
524 views

Matlab: Channel coding and modulation [closed]

This is a beginner level question on understanding modulation and channel coding. The confusion arises when I am trying to implement the concepts. Let's say I have the information bits as ...
Ria George's user avatar
0 votes
1 answer
2k views

Matlab simscape component modification.

I am new to Matlab. I wanted to use Simscape resistor element and want to make it Temperature dependent. However i open the code of the component by view source code. I modify the code but couldn't ...
Kajiram's user avatar
2 votes
2 answers
810 views

Reduce the impact of gaussian noise on DTMF decoder

I have a Matlab code to decode digits from a given DTMF audio file (wav format). Considering the input signal to be in the form of x(n)+αv(n) where x(n) is the noise-free signal (i.e. the given DTMF ...
Kaiko's user avatar
  • 33
-3 votes
2 answers
591 views

Simulink Capacitor doesn't load in simulation

I have a capacitor connected to a Voltage source in Simulink and it doesn't load with Voltage. The voltage remains constant (3V). What did I do wrong ? The Simulation says the voltage across ...
TraceKira's user avatar
  • 111
1 vote
1 answer
226 views

Function to Simulate Realistic Waveform

I need to simulate a realistic signal voltage triangle waveform in Mathematica. I know that a real waveform won't have sharp corners, but I don't remember exactly what a real triangle wave looks like....
Astor Florida's user avatar
0 votes
1 answer
105 views

Get distance covered by a wheel using a gyroscope placed on it

I have to calculate the distance covered by a wheelchiar using data gathered from a gyroscope that was placed on one of the driving wheels. I know the total length of the corridor we used for the ...
Giulia Barbareschi's user avatar
1 vote
2 answers
217 views

How to find the transfer function of a frequency counter?

I am designing a mathematical model for my control systems project and in that there is this block which measures the frequency of the wave. For the practical application I fed this wave into a micro ...
vineel13's user avatar
  • 197
0 votes
3 answers
2k views

Transmitting data from MATLAB to FPGA

This is about design of a JPEG compression/decompression scheme on an Altera FPGA. It is possible to have camera or SD card for image input and TV or SD card for image output. However, these ...
quantum231's user avatar
  • 11.8k
1 vote
0 answers
404 views

Fly-back converter

I'm trying to get 2 isolated outputs (5V and 3V from 12V DC supply) using a single flyback converter by adding one more secondary winding on the flyback transformer. Following is the Simulink model I'...
Shraddha Vardikar's user avatar
-3 votes
1 answer
3k views

PID controller DC motor Design using simulink [closed]

After playing the circuit, this circuit is showing the error. Tell me what is error in this circuit and what should be the P, I and D values for PID. ??? in block is not any error. It showing because ...
Mohit Tripathi's user avatar
-3 votes
1 answer
212 views

Voice controlled robot [closed]

Suggest me book name or link to study for voice controlled robot (DSP on matlab for voice recognition). What is the hardware module/ sensor for voice recongnition?
Mohit Tripathi's user avatar
0 votes
2 answers
100 views

applying for loop [closed]

I want to apply for loop. Below is my code. I have applied the for loop which is wrong. Here Length(t) is sample numbers. Here I want to create 'for' loop for a sample number 5 in particular. so how ...
Urban_Yogi's user avatar
4 votes
2 answers
3k views

How to model Phase noise?

I want to model phase noise. Code below shows how I am adding phase noise in the signal. However, i am not getting correct output. That means, the signal sprectrum shoud be spreading in the frequency ...
Urban_Yogi's user avatar
0 votes
2 answers
1k views

Matlab low pass filter design -removing noise

I am designing a low pass filter in matlab to remove the noises shown in the image. The original signal of interest lasts only for about 80 ms and rest of the signal are noises from probe tip. In ...
user3396084's user avatar
0 votes
1 answer
2k views

Calculating Data rate function of bandwidth and SNR

I plotted BER vs SNR for BPSK modulation in Matlab and I am given bandwidth of channel (bandlimited channel). lets say it is BW1. I would like to find the data rate based on this information. I am ...
justin's user avatar
  • 11
1 vote
1 answer
1k views

Voltage Drift on an Open Circuit (and how to get rid of it)

I'm trying to create a custom lick-port to detect mouse licking behavior. I am following a design published here that uses the junction potential between the mouse's tongue and the metal water spout ...
Chris's user avatar
  • 15
0 votes
1 answer
85 views

Is it possible to transfrom a transfer function into voltage?

So I have a control system which I'd like to control externally. I have the error signal from the system and I use an ADC to convert the signal to number. I have the transfer function of the system (...
Márk László's user avatar
0 votes
2 answers
9k views

Thyristor voltage regulator with different fireing angle for each period with simulink

First of all I'm really low with EE so please, go easy on me. As home assigment we have to design Thyristor voltage regulator in simulink. It should run for 5 periods with different thyristor fireing ...
user2475983's user avatar
6 votes
1 answer
3k views

How to deal with optimal power flow problem in MATLAB?

I am writing an optimal power flow (OPF) program. OPF is an optimization problem in which some decision variables like Generation, Load dispatch are adjusted in power flow program so as to minimize ...
Masan's user avatar
  • 163
-1 votes
1 answer
98 views

Filters responses

I got a filter and I want to examine whether it is stable or not. My system has the following TF $$H(s) = \frac{0,0001s^4 + 10s^2}{0,0001s^4+0,05s^3+10s^2+s+1}$$ So after plotting the zpmap (shown ...
sayid jetzenden's user avatar
2 votes
1 answer
2k views

State space modeling with disturbances using Matlab

I am doing a project which involves modeling a quadcopter in state space form using matlab. I first had to linearize the quadcopter equations of motion, and now have to implement them in a matlab ...
Nick's user avatar
  • 149
1 vote
1 answer
2k views

MATLAB function fixdt() question

MATLAB has a function fixdt() that creates objects describing fixed-point or floating-point data type. So if we write ...
Adeel's user avatar
  • 167
1 vote
1 answer
4k views

MATLAB error: "acker" function not returning the same thing as ackermann's formula

I have a discrete time system Suppose I have the following AB matrix of my system $$A = \begin{bmatrix} 0 & 1 \\ 1 & 1.5 \\ \end{bmatrix} $$ $$B = \begin{bmatrix} 0 \\ 1 \\ \end{...
Fraïssé's user avatar
  • 1,526
0 votes
2 answers
364 views

How to achieve a block of Z^(-0.5) in Simulink?

I'm doing simulation in Simulink of Matlab, but don't know how to get a Z^(-0.5) cell like this:
Coco Yum's user avatar
0 votes
1 answer
603 views

Why does my bandpass RF filter complain about Ts in Simulink?

I am doing a basic amplitude modulator, and I'm using as input signal for now a Gaussian noise generator, then I modulate it with a carrier fc=2e9Hz. When using Simulink along with a RF bandpass ...
ndarkness's user avatar
  • 115

1
8 9
10
11 12