Questions tagged [matlab]

MATLAB (MATrix LABoratory) is a numerical computing environment and a fourth-generation programming language. Use this tag with care.. see excerpt.

MATLAB is a rich tool used by many researchers in the signal and image processing areas and many others.

If your question also references MATLAB code, it is quite advisable that you use this tag.

However, please note that if the question is really about "How to do X in MATLAB" it is likely that the question will get closed.

If you want "to understand an algorithm because your results are not what you theoretically expect", explain the complete problem and reasoning and attach the matlab code; this will be welcome.

3104 questions
22
votes
3 answers

How did they color old black and white movies?

This question is on dsp.SE as I'm mostly interested in the signal processing part. There is an Indian movie Mughal-e-Azam which was released in 1960 in black & white which has been reproduced in color in 2004. How did they color each pixel…
Sufiyan Ghori
  • 2,175
  • 11
  • 34
  • 50
14
votes
3 answers

Designing Butterworth filter in Matlab and obtaining filter [a.b] coefficients as integers for online Verilog HDL code generator

I've designed a very simple low-pass Butterworth filter using Matlab. The following code snippet demonstrates what I've done. fs = 2.1e6; flow = 44 * 1000; fNorm = flow / (fs / 2); [b,a] = butter(10, fNorm, 'low'); In [b,a] are stored the filter…
Nicholas Kinar
  • 953
  • 2
  • 8
  • 16
11
votes
2 answers

Frequency shifting of a quadrature mixed signal

I've a quadrature mixed signal with 10 MHz as highest frequency available. I want to shift it to any frequency lesser than 10 MHz. I should get it by multiplying this signal by cosine of the required frequency. Right?
Sumbul
  • 337
  • 1
  • 4
  • 17
5
votes
2 answers

Does MATLAB code retain its accuracy when is executed in dsp kit?

MATLAB code (at https://metrw-pitch.blogspot.com/ you can see improved code) executing in MATLAB online R2020b, outputs good accuracy even for low fundamental frequencies (fundFreq) but the code (originally in the answer to a question of mine) for a…
4
votes
0 answers

How to evaluate performance of a simulated system

I have created a database (DB) of amplitde vs time delay of UWB pulses originating from various (known) points in a certain (known) "region" in a space. This DB also stores region name, since there are several regions . This is "training…
Ray
  • 41
  • 1
4
votes
2 answers

Audio Signal Processing & DHT

Is there any matlab (default) function for Discrete Hartley Transform? And is it applicable for audio signal? I want to apply it instead of DWT or FFT.
emtiajium
  • 55
  • 5
4
votes
2 answers

On the time-frequency relationships of median filters

I'm applying Matlab's median filter to a data sequence and I'm trying to figure out what filter co-efficients of a linear filter this corresponds to. Would the normal time-frequency relationship that exists for linear filters maintain itself for…
Zaubertrank
  • 403
  • 4
  • 9
3
votes
0 answers

Direct access of structure fields returned by a function call

This code was working fine when I asked about it in Filter is too large but when I tried it again on another PC it gives me this error: Warning: Direct access of structure fields returned by a function call (e.g., call to…
Gambour
  • 33
  • 4
3
votes
3 answers

Creating a PAM function with Matlab

So I need to make a function that will be called as function [t, pulse] = PAM (array). My function should have a result like this when I use array = [1 0.3 0.8 0.6], which array is the width of my digital pulsing signal.
Aggelos M
  • 41
  • 5
3
votes
2 answers

Can I get more information from this signal other than magnitude?

First a bit of background. I'm working on a metal detector that produces a pulse across a coil. The pulse signal is influenced if metal is present within the coil aperture.This link provides more information on Pulse Induction Metal Detectors. The…
ChrisD91
  • 155
  • 4
3
votes
4 answers

Matlab: Detect Peaks and Signal Jump

I want to detect 6 peaks in a signal. I am open to any suggestions. There is one problem where my signal sometimes jumps high and stays higher than the rest of the signal. I don't know why this happens but would like a solution to lower the signal…
wwjdm
  • 179
  • 1
  • 1
  • 6
3
votes
1 answer

In Matlab: how do I quickly create smoothing matrices?

Say I have 5 measurements of a signal as a column vector: x. I can smooth the signal by multiplying it with a smoothing matrix: $\ \mathbf{xs=S*x} $ For instance I might use [1 2 1] as a smoothing kernel in which case I get: S = 2 1 0 …
Andy
  • 1,783
  • 2
  • 17
  • 27
3
votes
1 answer

adding bode plots together?

I am trying to understand the bode plot result I have obtained. The blue, green, and red plots are $a$, $ b$, and $a+b$ respectively. What I'm having a hard time understanding is how a+b is formed. Looking at the magnitude of $a$, it is in the…
suzu
2
votes
0 answers

How to plot graph for coverage area

I have a two data set files data1 and data2 each containing 5000 points having 3 columns representing x,y(coordinate (centroid)),angular movement(theta) resepectively for two robot movements obtained by numerical programming and solution of a…
2
votes
2 answers

How to take the FFT of an undersampled signal

I am sampling a 5mhz blocks at an IF of 40 MHZ. I am sampling at 11MHz per bandpass sampling theory, but when I run the FFT I get all the aliases. So I am trying to figure out how to constrain the fft interpretation to the appropriate bands. IE i…
jarick
1
2 3
10 11