Forums Search for: Matlab
MC-CDMA simulation using Matlab
inI am simulating MC-CDMA using Matlab. Here is the message Maltab returned when I ran the simulation: Undefined function or method 'snr' for...
I am simulating MC-CDMA using Matlab. Here is the message Maltab returned when I ran the simulation: Undefined function or method 'snr' for input arguments of type 'char'. Error in ==> MCCDMA at 10 snr _in_ dB = 0:1:15; I am using Matlab 2007b and the Matlab code is: % MCCDMA % % for simulation % %%%%%%%%%%%%%%%%%%%% %%% Transmitter Model %%% clear all; clc;close all; tic;
Autocorrelation matrix of a long sequence
inHi I am using MATLAB to generate close to 10^8 samples of a Rayleigh fading channel using Jakes method. Once I generate these samples, I have...
Hi I am using MATLAB to generate close to 10^8 samples of a Rayleigh fading channel using Jakes method. Once I generate these samples, I have to then create a 20 x 20 autocorrelation matrix. I am using MATLAB to do this. MATLAB works perfectly for 10^6 samples, but once the number of samples increases slightly above 50 * 10^6, MATLAB throws an "OUT of Memory" error. I tried some techniques give...
Matlab Crashing
inmy Matlab has started crashing every 3 minutes. It's driving me nuts. I'm not even running any code, just editing code, which leads me...
my Matlab has started crashing every 3 minutes. It's driving me nuts. I'm not even running any code, just editing code, which leads me to believe its a java virtual machine problem. I am on a Debian Linux machine, and all was running grand till I recently did an apt-get update/upgrade and now it's banjaxed. When I run Matlab i get... /usr/local/bin/matlab: line 1: /lib/libc.so.6: Permi...
elliptic bandpass filter
inHi, I'm new to DSP and matlab and need some assistance.I?ve a waveform (sine like shape) in matlab which I want to apply in matlab a band-pass...
Hi, I'm new to DSP and matlab and need some assistance.I?ve a waveform (sine like shape) in matlab which I want to apply in matlab a band-pass filter centered at 500kHz to it and then plot the response. I was wondering if someone can help me with the syntax to achieve this functionality? Thanks a million Regards, John
Matlab FFT Code
inDoes anyone have FFT implementation for Matlab? I'm not interested in the built in Matlab function.
Does anyone have FFT implementation for Matlab? I'm not interested in the built in Matlab function.
Use of MATLAB fftshift
inI've seen discussion here of the correct use of MATLAB's fftshift() function. I'd like to verify my interpretation, and to ask what are the...
I've seen discussion here of the correct use of MATLAB's fftshift() function. I'd like to verify my interpretation, and to ask what are the effects when people do not use it correctly. Basically, MATLAB implements an fft (as do other sets of functions) whose results AND inputs are ordered (for an array of N elements), from 0 to (N/2-1) and then from N/2 to -1. (I will call this 'swap
adaptive MISO in matlab
inHello! I would like to adapt a MISO filter of more than 1000 coefficients. In matlab, there is adaptfilt.algorithm which works for SISO. I...
Hello! I would like to adapt a MISO filter of more than 1000 coefficients. In matlab, there is adaptfilt.algorithm which works for SISO. I have 2 Questions: 1) Is there a function in matlab which will adapt a MISO filter? 2) Does anyone know a way to view the matlab code for adaptfilt/filter? Thanks so much! -Caryn
Factoring a filter (s^2) * h into (s*h1) . (s*h2)
inHello, This is probably a classic problem, but after much Googling, I can't come up with the right keywords. In the following, * is a...
Hello, This is probably a classic problem, but after much Googling, I can't come up with the right keywords. In the following, * is a convolution (conv in Matlab) ^2 means squared ( .^2 in Matlab) and a dot . means multiply (.* in Matlab). I would like to be able to "factor" a filter h into two filters h1 and h2 in such a way that for any signal s: (s^2) * h = (s*h1) . (s*h2) Any...
joint probability fuunction in MATLAB
inHi, I am still new to using MATLAB 7.0. I am currently developing a code using bayesian algorithm and don't know how to implemenent joint...
Hi, I am still new to using MATLAB 7.0. I am currently developing a code using bayesian algorithm and don't know how to implemenent joint probability functions in MATLAB. Any help tips will be appreciated. Thanx
I want to Execute MATLAB file with TMS320C54X
inHi all, I did Image Compression task using SPIHT algorithm with MATLAb 6.5 code. Now i want to implement the same with TMS320C54X. How...
Hi all, I did Image Compression task using SPIHT algorithm with MATLAb 6.5 code. Now i want to implement the same with TMS320C54X. How can i do this with CCS ? Can any body help me ? But i do not want to copy the MATLAB Libabry files in to CCS. Thanks in advance, Sathish
Fortran implementation of Matlab's filtfilt
inHi All, I'm hunting around for a head start on implementing a zero phase distortion filter (a.k.a "filtfilt" in Matlab) using Fortran. ...
Hi All, I'm hunting around for a head start on implementing a zero phase distortion filter (a.k.a "filtfilt" in Matlab) using Fortran. I'm familiar with Matlab but not so much with Fortran - I essentially need to code something very similar to filtfilt using Fortran so that the filtering routine can be called from other Fortran based code (using static filter coefficients as designed in Matlab...
:1,$s/Matlab/R/g
inI've been recently studying the R language as a possible free and cross platform replacement for Matlab. I am absolutely in love with this...
I've been recently studying the R language as a possible free and cross platform replacement for Matlab. I am absolutely in love with this language. While it has a more traditional syntax and representation, many of the concepts such as the powerful indexing operations, are taken from my old favorite APL. It is a real language, not a hack as I consider Matlab to be from both a syn...
5 Stages CIC Filter Matlab Simulation Problem
inI implemented the matlab simulation model according to hardware architecture.The impulse response is ok when the impulse length is short.But...
I implemented the matlab simulation model according to hardware architecture.The impulse response is ok when the impulse length is short.But when I increase the length of impulse stimulus, I found increasing spurs. I don't know whether this is caused by the instability of the filter or some other reasons. Attached is the matlab code,and at the end of code I added the matlab internal function...
is there a way to convert Matlab code direct to TI TMS320C54x...?
inI noticed that Mathworks has simulink target for TMS C2000 and C6000... Does that mean that my TMS320C5410 EVM cannot be used by converting...
I noticed that Mathworks has simulink target for TMS C2000 and C6000... Does that mean that my TMS320C5410 EVM cannot be used by converting simulink code into TI code? I am also wondering what can I do if I want to convert Matlab code directly into TI code? Is that an option to convert Matlab code directly into TI code to work in CCS? For example, for a 40-tap FIR filter, my Matlab ...
Control Matlab event loop ?
inHi, I have a question as to whether one can programmatically control Matlab event loop? First, is there a way to stop or pause Matlab...
Hi, I have a question as to whether one can programmatically control Matlab event loop? First, is there a way to stop or pause Matlab execution via an automated command, or via a button press. I know that upon execution of pause(), redraw() etc functions, Matlab will check its event queue and execute pending items in that queue. However, those commands have to be explicitly inserted int...
Please check my filter!
inIm trying to implement an 8th order Butterworth low pass filter in Matlab. I know you can design filters in matlab, but because of the...
Im trying to implement an 8th order Butterworth low pass filter in Matlab. I know you can design filters in matlab, but because of the specific implementation of my project, im doing with no matlab functions in an m file. So, the problem im having is that the input before filtering is EXACTLY the same as the output... what am I doing wrong? The sampling frecuency is 44100 hz. The filter cutoff...
Matlab and VC++ values differ when determining FFTusing FFTW
inHi there, I have recently started using FFTW to determine fft in C++, so I am really not good at it. I am currently trying to just evaluate my...
Hi there, I have recently started using FFTW to determine fft in C++, so I am really not good at it. I am currently trying to just evaluate my fft values in both matlab and C++. I have used FFTW to determine the fft in C++ and fft2 in matlab for a 4*4 matrix [int values]. My values were same in both Matlab and C++. My real requirement is to use fft on complex matrices. But my values no longer m...
Motion estimation in MATLAB
inDear all, I want to test my motion estimation algorithm againest other popularly known ME algos. I have my algorithm code in MATLAB. How...
Dear all, I want to test my motion estimation algorithm againest other popularly known ME algos. I have my algorithm code in MATLAB. How can I get the other ME algorithms in MATLAB. If you know any links...please send to me. Thanks in advance, Regards, Ramya.
cross correlation
inHi, i'm relatively new to dsp and matlab.I currently have 2 waveforms read into Matlab from my oscilloscope,for example waveform A and waveform...
Hi, i'm relatively new to dsp and matlab.I currently have 2 waveforms read into Matlab from my oscilloscope,for example waveform A and waveform B. I want to to perform a search for a similiar match of waveform A in waveform B. I believe its poossible to do this using the xcorr function in matlab but I'm having difficulties in getting this to work. I want to plot my results so that a "correlation...
Hanning window roll off (Matlab)
inHi All, In Matlab there is Hanning function which implement cos^2(t) window. It has -18 db/oct roll off. I need to estimate the signal PSD...
Hi All, In Matlab there is Hanning function which implement cos^2(t) window. It has -18 db/oct roll off. I need to estimate the signal PSD using window with higer roll off. The sin^4(t) seems adequate for my purpose but it seems it is not implemented in Matlab? I wonder is there in Matlab window with roll off in terms of -30 db/oct implemented? Thanks! penev