DSPRelated.com

Ask about ploting X(omega)

Started by VijaKhara in comp.dsp18 years ago 1 reply

Dear members: Im my matlab homework, I am required to plot the spectrum of x[n]=(0.8)^|n-10| Using fomular I...

Dear members: Im my matlab homework, I am required to plot the spectrum of x[n]=(0.8)^|n-10| Using fomular I calculate X(omega)=exp(-j*omega*10)*(1-0.8^n)/(1-2*0.8cos(omega)+0.8^2) Because when I plot X(omega) , Matlab warns me that it neglects some imaginary numbers/, I am wondering if it makes sense to plot X(omega) in matlab or noone does that, they plot abs(X(omega)) and phase of...


prototyping and migrating code to production: MATLAB, C, C++, asm

Started by robert bristow-johnson in comp.dsp11 years ago 25 replies

okay guys, what do you do, if you start with an alg that works pretty good in MATLAB/Octave/MathCad/Mathematica/whatever, and you wanna make...

okay guys, what do you do, if you start with an alg that works pretty good in MATLAB/Octave/MathCad/Mathematica/whatever, and you wanna make production code out of it. let's pretend the production code will be C. what do you do? rewrite it yourself, line by line? use http://www.mathworks.com/products/matlab-coder/ ? something else? (i guess i would also be interested in hearing...


Matlab mldivide, minimum norm ?

Started by NewLine in comp.dsp18 years ago 4 replies

Hi, I was wondering if for an underdetermined system the Matlab mldivide (equivalent to \) function will retrurn the minimum norm solution,...

Hi, I was wondering if for an underdetermined system the Matlab mldivide (equivalent to \) function will retrurn the minimum norm solution, or if the returned solution is constrained in another way or if the solution has no particular properties beyond satisfying the set of equations ? The matlab help page doesn't help me. http://www.mathworks.com/access/helpdesk/help/techdoc/ref/ml...


Regarding DCT

Started by jyothina in comp.dsp17 years ago 1 reply

Hi All, I am performing Integer DCT on Lena image. I am using " C "& i am not able to reconstruct the image correctly. Before applying DCT I...

Hi All, I am performing Integer DCT on Lena image. I am using " C "& i am not able to reconstruct the image correctly. Before applying DCT I am subtracting 128 from all pixels of input image. After IDCT i am adding 128 to the result image. I want to compare my results with MATLAB . Is anybody know how to use dct i.e. dct2 function of MATLAB? if anyone has the related code in MATLAB please...


Urgent:RTDX issue

Started by Hamid in comp.dsp20 years ago 3 replies

Hi all I'm running a massive test harness on DSK6416, I'll send the input data from Matlab via RTDX to the target and I get back the data...

Hi all I'm running a massive test harness on DSK6416, I'll send the input data from Matlab via RTDX to the target and I get back the data for analyzing in Matlab via RTDX. After a while , matlab reported a failure in input channel , at the same time the CCS has crashed and error in CCS is as following "stack overflow" Comments or suggestions would be very much appreciated. thanks ...


RBF interpolation

Started by ma in comp.dsp18 years ago 1 reply

Hello, I want to implement RBF interpolation in Matlab for 2D signal (image) interpolation. What I like to know is: 1- Is there...

Hello, I want to implement RBF interpolation in Matlab for 2D signal (image) interpolation. What I like to know is: 1- Is there any freely available RBF interpolator source code for Matlab? 2- How can I implement it? I read a lot about its theory but I couldn't figure out how an implementation is working. 3- If there is a C implementation, I maybe able to port it to Matlab ...


inmarsat

Started by crusaders792002 in comp.dsp19 years ago 8 replies

Can anyone help me? I can't find enough information about standard Inmarsat-C. I found information about Inmarsat-C in the group FAQ-Inmarsat,...

Can anyone help me? I can't find enough information about standard Inmarsat-C. I found information about Inmarsat-C in the group FAQ-Inmarsat, but this information isn't correctly. I built Matlab receive model and I use Matlab BPSK demodulator. I tryied with this demodulator, afterthat I changed it with Matlab DBPSK demodulator, but results were mostly same. I didn't see synchroword and struc...


Converting 12-bits unsigned integer to floats using matlab

Started by Umutesi Faith in comp.dsp18 years ago 4 replies

Hello Does anyone have a hint on how to convert a set of 12-bites unsigned interger to float, using matlab? Matlab shows the following...

Hello Does anyone have a hint on how to convert a set of 12-bites unsigned interger to float, using matlab? Matlab shows the following syntax using float a = float('single') a = float('double') a = float(TotalBits, ExpBits) // here is an example of 12-bit unsigned int x=[ 2843 2845 2851 2869 2838 2840 2853 2864]; I have tried these 3 float syntaxes , but i don't get any c...


ADS MatLab cosimulation HELP!!

Started by Phil Newman in comp.dsp18 years ago

Hi, I want to compile a very simple function in matlab (x++ for example) that I can compile using mcc and then input that function into ADS...

Hi, I want to compile a very simple function in matlab (x++ for example) that I can compile using mcc and then input that function into ADS and cosimulate it. How can I best do this? I am using MatLab version 7, and ADS version 2003c. Cheers, Phil


Freqz and fft question

Started by rudykeram in comp.dsp11 years ago 2 replies

Hi, This is a Matlab specific question. I posted this question on Matlab DSP discussion group, but it never showed up. So, I am asking the...

Hi, This is a Matlab specific question. I posted this question on Matlab DSP discussion group, but it never showed up. So, I am asking the question here (I have posted questions on the Matlab group before, but it would always show up). But anyways, here is my question: I have always been unclear about why freqz behaves this way, and to me this doesn?t really make sense. Let me expla


How to write NIST file using Matlab?

Started by Nash in comp.dsp18 years ago

do anyone know how to write nist sphere file using matlab ? i need to write new resample file in NIST format but i cant do it using matlab 7 cuz...

do anyone know how to write nist sphere file using matlab ? i need to write new resample file in NIST format but i cant do it using matlab 7 cuz there is only readwav,writewav,readsph (to read sphere format only). i need new resampled 8Khz file as input for gsm and celp encoder . can matlab run any '.exe' file because my encoder is in encoder.exe file. Im using libsndfile library to en...


expanded matlab code for COV

Started by Anonymous in comp.dsp18 years ago 1 reply

Hi, I am currently in the process of expanding upon some matlab functions, that is, to explicitly write out the code for a function. I have...

Hi, I am currently in the process of expanding upon some matlab functions, that is, to explicitly write out the code for a function. I have been trying to write code to give the results of COV in matlab (I got it for a bit, then mysteriously to me, it stopped working when i relocated code)... Anyway, has anyone gone through this process or come across code that would be of help to me?...


Finding the percentage of similiarity of two signals in matlab

Started by ryan81 in comp.dsp19 years ago 5 replies

Hi all, I understand the subject of similiarity of signals has dsicuss many of times in this forum however i still need some valuable advice...

Hi all, I understand the subject of similiarity of signals has dsicuss many of times in this forum however i still need some valuable advice and help. My problem is that i am trying to find the percentage of similiarity of 2 signals using matlab? Say in matlab i have just a variable called signal1 and signal2 both of size [1 by 5000] these signal 1 and signal 2 are EEG signals. I just w...


Matched Filtering using Matlab

Started by squick40 in comp.dsp16 years ago 5 replies

Hi All, I am working on a simulation in Matlab. Basically I have 12 random spread spectrum signals sampled. Then I have Matlab randomly pick...

Hi All, I am working on a simulation in Matlab. Basically I have 12 random spread spectrum signals sampled. Then I have Matlab randomly pick one of these and add AWGN on. Finally, I use matched filtering of this random signal to each of the 12 predefined signals and repeat this several times at various SNRs. The goal is obviously to detect which of the 12 predefined signals is being used he...


Matlab code for MPEG/h.264 video encoding and decoding

Started by chaitanya in comp.dsp17 years ago

Hi I am in need of a MPEG/H.264 codec in matlab. I want to play with the compressed bitstream i.e. headers , motion vectors ,VLCs etc. I need...

Hi I am in need of a MPEG/H.264 codec in matlab. I want to play with the compressed bitstream i.e. headers , motion vectors ,VLCs etc. I need to convert a video into mpeg bitstream .... and then put my watermark in this compressed domain. It would be great if anyone could provide a solution(preferably in matlab) for the above .... Thanks and regards chaitanya


Using fft() in Guide MATLAB- HELP PLEASE

Started by james_bond in comp.dsp17 years ago 3 replies

Hi all In the GUI in matlab i am creating a single sin wave with a freq between 1KHz-15Khz in steps 1KHz. In matlab iam using the fft()...

Hi all In the GUI in matlab i am creating a single sin wave with a freq between 1KHz-15Khz in steps 1KHz. In matlab iam using the fft() function to get the freq specturm and then get mag and find the peak which will give me the freq. But i need to make a GUI version of this and cant seem to get any thing to work . can anyone help or give me a website to look at. Thanks James_Bond


Matlab 'rayleighchan' and RAKE receiver.

Started by prasannas in comp.dsp16 years ago 1 reply

Hi, I was trying to reuse my old RAKE receiver matlab code which also includes delay acquisition and channel estimation. It still works fine...

Hi, I was trying to reuse my old RAKE receiver matlab code which also includes delay acquisition and channel estimation. It still works fine for AWGN, but it doesn't work at all when I try to use it with a fading channel generated by using the 'rayleighchan' function from Matlab. So I tried a few tests: 1) Instead of using the estimated channel coefficients, I let the RAKE receiver have perfe...


Group delay in Matlab

Started by gab in comp.dsp18 years ago 6 replies

Dear all I not very familiar with filter design in Matlab and I am probably missing something when it comes to "group delay". My problem comes...

Dear all I not very familiar with filter design in Matlab and I am probably missing something when it comes to "group delay". My problem comes as follows. From what I have understood, if I have a filter such that its group delay response (plotted with grpdelay[b,a] in matlab with a,b the filter coefficients) provides 17 as the group delay (in samples) at f=0.14 (normalized frequency so f=0.1...


Matlab as COM

Started by scc in comp.dsp16 years ago

Hi, I'm using a Software that allos me to link a Matlab File integrating it for the simulations. The Help Tool of the Software tells that I've...

Hi, I'm using a Software that allos me to link a Matlab File integrating it for the simulations. The Help Tool of the Software tells that I've to execute some comands before running simulation. the exact intructions are: "The PATH environment variable should include the bin directory under the MATLAB root directory. This example shows how PATH can be set: set PATH= \bin\win32;


Help: Matlab programming of BLMS and FDAF

Started by Minal in comp.dsp17 years ago

hi, I am trying to implement frequency domain adaptive filter FDAF and want to compare its performance with that of BLMS, can anybody let me...

hi, I am trying to implement frequency domain adaptive filter FDAF and want to compare its performance with that of BLMS, can anybody let me know what kind of performance I should expect for BLMS and FDAF. Should the MSEs similar to standard LMS? Is there any source for FDAF matlab code? I have referred S.S.Shaynks paper for theory , for matlab code I want to know how the serial data is arra...