f



Functions of audioplayer matlab

Hey,
I have a GUI with 3 buttons, all 3 button play songs when loaded from a file, So im using Audioplayer and its playing Button 1, but when i press button 2, Button 1 is still playing and button 2 also plays and so on with button 3... 
So my question is, what do I do so when Button 1 is playing and I press Button 2, Button 1 music is stopped and Button 2 music starts playing, same with Button 3. (I dont want to add any other buttons, I want it to stop automatically when I press other button and plays that song).

function myplay(file)
if isunix,
%using system's play (from the sox package) on Unix (MATLAB's sound does not work)
[s,w]=unix(['play ' file]);
else,
%using MATLAB's wavplay on Windows
[y,fs]=wavread(file);
player=audioplayer(y,fs);
play(player);
pause(max(size(y))/fs);
end
0
husein06 (4)
5/19/2012 4:36:26 PM
comp.soft-sys.matlab 211266 articles. 25 followers. lunamoonmoon (257) is leader. Post Follow

1 Replies
755 Views

Similar Articles

[PageSpeed] 55


"Tom Albert" <husein06@hotmail.com> wrote in message 
news:jp8i6a$3of$1@newscl01ah.mathworks.com...
> Hey,
> I have a GUI with 3 buttons, all 3 button play songs when loaded from a 
> file, So im using Audioplayer and its playing Button 1, but when i press 
> button 2, Button 1 is still playing and button 2 also plays and so on with 
> button 3... So my question is, what do I do so when Button 1 is playing 
> and I press Button 2, Button 1 music is stopped and Button 2 music starts 
> playing, same with Button 3. (I dont want to add any other buttons, I want 
> it to stop automatically when I press other button and plays that song).
>
> function myplay(file)
> if isunix,
> %using system's play (from the sox package) on Unix (MATLAB's sound does 
> not work)
> [s,w]=unix(['play ' file]);
> else,
> %using MATLAB's wavplay on Windows
> [y,fs]=wavread(file);
> player=audioplayer(y,fs);
> play(player);
> pause(max(size(y))/fs);
> end

I don't know how or if you can stop the UNIX PLAY command; for AUDIOPLAYER, 
use its STOP method.

http://www.mathworks.com/help/techdoc/ref/audioplayer.html

-- 
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on 
http://www.mathworks.com 

0
slord (13689)
5/21/2012 2:36:27 PM
Reply:

Similar Artilces:

Matlab S-function
I am trying to access element in a matrix. But it gives me an error message "Attempted to access xxx(0); index must be a positive integer or logical." The input to my s-function is a constant block with value of 1 and data type of uint16. Thus, my input is definitely a positive integer. I also tried to use "cast" to make sure my variable "var" is positive integer but it did not work. I have no idea why Simulink returns this error message. My very simple code is below. function setup(block) block.NumInputPorts = 1; block.NumOutputPorts = 1; block.SetPreCompInpPortInfoToDynamic; block.SetPreCompOutPortInfoToDynamic; block.InputPort(1).Dimensions = 1; block.OutputPort(1).Dimensions = 1; block.NumDialogPrms = 0; block.InputPort(1).DatatypeID = 5; % uint16 block.InputPort(1).Complexity = 'Real'; block.InputPort(1).DirectFeedthrough = false; % Override output port properties %block.OutputPort(1).Dimensions = 1; block.OutputPort(1).DatatypeID = 0; % double block.OutputPort(1).Complexity = 'Real'; % Register sample times block.SampleTimes = [-1 0]; % Specify the block simStateCompliance. block.SimStateCompliance = 'DefaultSimState'; % Register for all block methods block.RegBlockMethod('SetInputPortSamplingMode',@SetInpPortFrameData); block.RegBlockMethod('SetInputPortDimensions', @SetInpPortDims); block...

Matlab parallel for loop or Matlab open pool
I am trying to to some computations and I would like to do it in parallel using parfor or by Opening the matlabpool.. as the current implementations is too slow: result=zeros(25,16000); for i = 1:length(vector1) % length is 25 for j = 1:length(vector2) % length is 16000 temp1 = vector1(i); temp2 = vector2(j); t1 = load(matfiles1(temp1).name) %load image1 from matfile1 t2 = load(matfiles2(temp2).name) % load image2 from matfile2 result(i,j)=t1.*t2 end end It work fine but I would really like to know if there is a way to speed thing up ... Thanks a lot in advance! ...

Contribute to MATLAB Central and Win a MATLAB Jacket
Many of you who post to this newsgroup are also regular contributors to the MATLAB Central File Exchange. Look for your favorite contributors on our File Exchange Author Profile page. You can read their profiles and see pictures: <http://www.mathworks.com/matlabcentral/reports/fileexchange/allProfiles/> In a random drawing, we recently awarded MATLAB jackets to three File Exchange authors with profile pages: Michele Giugliano, Andrey Egin, and Denis Gilbert. You can win a jacket, too. Just submit a new file to the File Exchange or update your author profile by December 2003 for a chance to win one of four MATLAB jackets. See the jacket below: <http://www.mathworks.com/matlabcentral/images/jeff3.jpg> Here are some interesting File Exchange facts: - Since its inception in 2001, visitors have downloaded more than 1.25 million submissions from the File Exchange. - In September 2003 alone, visitors downloaded 80,085 files, an average of 2670 a day! .... what if the prize was a free copy of the next version of Matlab :-) majb Min Poh wrote: ....or an offer for employment... aj "bourassa" <bourassa-m@rmc.ca> wrote in message news:3f9d507d$1@rmcnt03a.rmc.ca... > ... what if the prize was a free copy of the next version of Matlab :-) > > majb > > Min Poh wrote: > ...

problem with matlab function
Hello, I am using a matlab function "vitdec" to simulate viterbi decoding i awgn channel. I noticed a rather weird problem with it. When I increase th msglength the BER improves(eventually plateaus down), my understanding i that BEr improves with the traceback length. Attached is the matlab cod and the BERs I observed, traceback length was fixed to 15 for a constrain length of 3. Is there something wrong i am doing or is there a problem wit vitdec? your help will be greatly appreciated. Thanks ***************************************************************************** msglen: 15, 30, 300, 3000, 30000 BER: 2.1e-3, 8.2e-4, 1.5e-4, 9.5e-5, 8.7e-5 **************************************************************************** Matlab Code clear all snr=4; k=3;%constraint length msglen=30000;%msg length tblen=15;%traceback length for snr_idx=1:length(snr) p=sqrt(0.5)*(10^(-1*snr(snr_idx)/20)); no_bit_errors=0;no_bits=0; while no_bit_errors<100 msg = randint(1,msglen); % Random data t = poly2trellis(k,[7 5]); % Define trellis. [code fstate] = convenc(msg,t,0); % Encode the data. noise=p*randn(1,2*msglen); inp_bit=2*code-1; rec_bit=inp_bit+noise; [hrdout]= vitdec( (rec_bit>0), t, tblen, 'trunc', 'hard' ); no_bit_errors=no_bit_errors+sum(abs(msg-hrdout)); no_bits=no_bits+length(msg); end BER(snr_idx)=no...

matlab cwt function
when computing a continuous wavelet transform MatLab uses the function cwt. Ifo ne looks at the code then the line where coefficients are computed looks like coefs(ind,:) = -sqrt(a)*wkeep1(diff(wconv1(val_SIG,f)),lenSIG); what I would like to understand is what analytic formula is used for this computation, in part, what the multiplier sqrt(a) mean and why it is here? Thanks. "Maxim" wrote in message <ilsnt8$6b1$1@ginger.mathworks.com>... > when computing a continuous wavelet transform MatLab uses the function cwt. Ifo ne looks at the code then the line where coefficients are computed looks like > coefs(ind,:) = -sqrt(a)*wkeep1(diff(wconv1(val_SIG,f)),lenSIG); > > what I would like to understand is what analytic formula is used for this computation, in part, what the multiplier sqrt(a) mean and why it is here? > Thanks. Hi Maxim, This expression is easily derived from the CWT as the inner product between the signal and the translated and dilated wavelet. Unfortunately, this forum does not lend itself to posting the derivation. Basically, the code comes from making a piecewise-constant approximation to the input signal, then recognizing that the integral of the wavelet over an interval [k,k+1) can be written as the difference of integrals (-\infty, k+1) - (-\infty, k). Casting this as the difference of two convolutions is obtained by a change of variable in the integral which results in the sqrt(a) term and the minus sign out in front. Wa...

How can I use a Matlab function, whose inputs varies with time (real time function), in simulink
Hello I need your help I would llike to know how can I use a Matlab function, whose inputs varies with time (real time function), in simulink. Thank you in advance Hiba ...

Call Matlab m-file from Matlab Scrip Node
My problem with matlab script node is related to calling function in matlab.&nbsp; I created an m-file function that takes an imput temperature (from DAQ) and defines a material property.&nbsp; My matlab script node doesn't seem to recognize my function.&nbsp; I have placed the function in the folder the vi is currently located, but it doesn't read it.&nbsp; How do I get matlab script node to read the functions I create in matlab? Add the directory to matlab path, or call the .m file with it full name ( D:\..... \myfile.m) Let me clarify, &nbsp; I have pasted my matlab code into the matlab scrip node. &nbsp; In this code, I have called a subfunction that I have created. &nbsp; Example k(n)=k_c(T(n)) where k_c is a subfunction I have created. &nbsp; How do I get my code in the node&nbsp;to sucessfully read the subfunction k_c? &nbsp; &nbsp; &nbsp; As indicated, you need to add the directory where the .m file containing the function resides to the list of paths that are read in. This is your startup.m file. The other option is to do a "cd" command prior to calling your function to change to the directory where the .m file containing the function resides. Thanks for reiterating the information.&nbsp; My matlab script node is working properly.&nbsp; I had never used the "cd" command in matlab.&nbsp; I always set the working directory when I open the program, and put all the m files into t...

Need help for a matlab mini project
Hello everyone, I have a matlab in class exercise due in few days. I am new to matlab and the instructions provided with the assignment is minimal. Can Someone help me with the basic understanding as in how can I map the problem's solution to matlab script ? I am not able to post question here as it is a jpeg file. Please let me know and then we can discuss further. ...

matlab has no unit conversion function?
for example, inch2meters, etc? Surely I can write my own program, but I really hope that Matlab provide those unit-conversion routines... thanks a lot! None that I know of, but think of the *great* service you would do to the Matlab community if you wrote a thorough function and posted it on the Mathworks file exchange website! lucy wrote: > > > for example, inch2meters, etc? > > Surely I can write my own program, but I really hope that Matlab > provide > those unit-conversion routines... thanks a lot! > > > > None that I know of, but think of the *great* service you would do > to > the Matlab community if you wrote a thorough function and posted it > on the Mathworks file exchange website! > >> for example, inch2meters, etc? >> >> Surely I can write my own program, but I really hope that Matlab >> provide >> those unit-conversion routines... thanks a lot! You can't GREP a tree but you can search a newsgroup. The talented and generous Per Isakson was kind enough to answer this very question on 2004-05-14: See <http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=246&objectType=file> <http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=3181&objectType=file#> and Newsletters - MATLAB News & Notes Cleve's Corner Supplement Winter 1999 This is a supplement to the Cleve's Corner article, "Obj...

This function crashes matlab occasionally... why?!
I have a function that displays several images in one figure (see below). I= 've also been experiencing a lot of MATLAB/Java crashes that I think can be= traced to this function. I'm not sure why it happens... it's quite rare, o= nce a week or two. Can someone tell me what is causing the problem? q=3Drepmat(phantom(256,256),[1 1 9]); ims(q) function ims(im,RANGE,TITLE) % RANGE: e.g. [0 1] for [hi lo] or [0 1;NaN 100;...] for individual ranges % (note: use [] or NaN for no range) % TITLE: ['plot1';'plot2';...] (must be same length) % make into 3D array im =3D squeeze(im); [x y n] =3D size(im); im =3D reshape(im,x,y,n); % try and figure out a nice tiling rows =3D floor(sqrt(n)); cols =3D ceil(n/rows); N =3D [rows cols]; % clear existing plots clf reset % plot here for i =3D 1:N(1) for j =3D 1:N(2) k =3D (i-1)*N(2)+j; if k>n; break; end lo =3D min(min(im(:,:,k))); hi =3D max(max(im(:,:,k))); if exist('RANGE','var') && ~isempty(RANGE) if size(RANGE,1)=3D=3D1 % use same setting for all if ~isnan(RANGE(1,1));lo =3D RANGE(1,1);end if ~isnan(RANGE(1,2));hi =3D RANGE(1,2);end else if k<=3Dsize(RANGE,1) % individual ranges if ~isnan(RANGE(k,1));lo =3D RANGE(k,1);end if ~isnan(RANGE(k,2));hi =3D RANGE(k,2);end ...

Matlab function #2 387622
I have this function but when I called like [y z] = lab2_15192572_fun(-0.8) it gives me repeated answer and I am not sure whether it is the right answer or not. The answer is z = 1.6400 y = -0.3600 y = -0.3600 z = 1.6400 Is my function structure wrong? function [y,z] = lab2_15192572_fun(x) if abs(x) < 2 z = x^2 + 1 y = x^2 - 1 elseif 2< abs(x) <= 4 z = 1/(x^2 + 1) y = 1/(x^2 - 1) else z = cos(x) y = sin(x) end Mario Fatafehi wrote: elseif 2< abs(x) <= 4 2 < abs(x) will return either 0 (false) or 1 (true). You then check to see if that 0 or 1 is <= 4, which of course it is. If you want to check to see if a number is in a range, code both halves of the test, 2 < abs(x) && abs(x) <= 4 Walter Roberson <roberson@hushmail.com> wrote in message <hoeurm$nga$1@canopus.cc.umanitoba.ca>... > Mario Fatafehi wrote: > elseif 2< abs(x) <= 4 > > 2 < abs(x) will return either 0 (false) or 1 (true). You then check to > see if that 0 or 1 is <= 4, which of course it is. > > If you want to check to see if a number is in a range, code both halves > of the test, 2 < abs(x) && abs(x) <= 4 But why does it gives me repeated answer? "Mario Fatafehi" <coruba9@hotmail.com> wrote in message <hof3hk$pes$1@fred.mathworks.com>... > Walter Roberson <roberson@hushmail.com> wrote in message <hoeurm$nga$1...

S-function! in Simulink/Matlab
Hello, S-function! in Simulink/Matlab does anyone solve ODE in S-function! in Simulink C++ blocks instead of matlab m-files? thanks ...

bar
In MatLab 6.5, the routine above works normal: figure; sem=Average(:,2)./sqrt(Average(:,3)); bar([1:1:7],Average(:,1),sem); ylabel('% of epochs analyzed') xlabel('Frequency Band') title ('Occurrence of Oscillatory Events - Ch X') %Where Average and sem are vectors; But, in MatLab 7.0, the same code cause the following error: ??? Error using ==> xychk Too many input arguments. Error in ==> bar at 53 [msg,x,y] = xychk(args{1:nargs},'plot'); Error in ==> cross_subj_analysis>ok_Callback at 327 bar([1:1:7],Average(:,1),sem); I'd like to know why this occour. Thanks Henrique In article <g7a1j6$l1$1@fred.mathworks.com>, Henrique Amaral <henriquetomaz@uol.com.br> wrote: >In MatLab 6.5, the routine above works normal: >figure; >sem=Average(:,2)./sqrt(Average(:,3)); >bar([1:1:7],Average(:,1),sem); >ylabel('% of epochs analyzed') >xlabel('Frequency Band') >title ('Occurrence of Oscillatory Events - Ch X') >%Where Average and sem are vectors; >But, in MatLab 7.0, the same code cause the following error: >??? Error using ==> xychk >Too many input arguments. >Error in ==> bar at 53 > [msg,x,y] = xychk(args{1:nargs},'plot'); >Error in ==> cross_subj_analysis>ok_Callback at 327 >bar([1:1:7],Average(:,1),sem); >I'd like to know why this occour. When the third argument is numeric, it must be the bar width. barwidth must b...

Matlab Audioplayer code help!
Hey, So im reworking a code. GUI with 3 buttons, all 3 button play songs when loaded from a file, So im using Audioplayer and its playing Button 1, but when i press button 2, Button 1 is still playing and button 2 also plays and so on with button 3... So my question is, what do I do so when Button 1 is playing and I press Button 2, Button 1 music is stopped and Button 2 music starts playing, same with Button 3. (I dont want to add any other buttons, I want it to stop automatically when I press other button and plays that song). function myplay(file) if isunix, %using system's play (from the sox package) on Unix (MATLAB's sound does not work) [s,w]=unix(['play ' file]); else, %using MATLAB's wavplay on Windows [y,fs]=wavread(file); player=audioplayer(y,fs); play(player); pause(max(size(y))/fs); end ...

what is command for delta function in matlab
hi to all. I stuck to write a delta function in matlab.can any one help me for the command of delta function. thanks On 07/09/10 12:32 AM, BRIJESH SINGH wrote: > hi to all. I stuck to write a delta function in matlab.can any one help > me for the command of delta function. Only the symbolic toolbox has a delta function, where it is called dirac() http://www.mathworks.com/help/toolbox/symbolic/dirac.html It is, however, not a correct mathematical Dirac Delta: http://en.wikipedia.org/wiki/Dirac_delta_function "From a purely mathematical viewpoint, the Dirac delta is not strictly a function, because any real function that is equal to zero everywhere but a single point must have total integral zero." ...

Complexities with how MATLAB reads functions
Hey Guys, essentially how i am writing my function, as MATLAB is plotting something different to what i want. I write my function into wolfram alpha, and obtain the desired result. However when i paste this into MATLAB the period has been drastically reduced. Here is the link for what i have placed into wolfram: http://www.wolframalpha.com/input/?i=y+%3D+5cos%28x%29+-+%285%2F4%29cos%2830%29+-+cos%2830-x%29+%2B%281-4%2B16%2B25%29%2F%288%29 And here is my code: x = 90:180; y = 5*cos(x) - (5/4)*cos(30) - cos(30-x) +(1-4+16+25)/(8); plot(x,y) Can someone please explain why the two methods are reading the same function so differently, this is part of a much bigger problem which i can't move on through until this little error is rectified. Any help would be so greatly appreciated! Thanks In article <k2gtb0$lu6$1@newscl01ah.mathworks.com>, "Jac " <jac_domney@hotmail.com> wrote: > Hey Guys, essentially how i am writing my function, as MATLAB is plotting > something different to what i want. I write my function into wolfram alpha, > and obtain the desired result. However when i paste this into MATLAB the > period has been drastically reduced. > > Here is the link for what i have placed into wolfram: > http://www.wolframalpha.com/input/?i=y+%3D+5cos%28x%29+-+%285%2F4%29cos%2830%2 > 9+-+cos%2830-x%29+%2B%281-4%2B16%2B25%29%2F%288%29 > > And here is my code: > x = 90:180; > y = 5*cos(x) -...

Matlab builder JA: parse java string to matlab cell
Hi all, I'm building a java swing based GUI for my Matlab application. As such, user input is available as text strings, for example "{[0; 0], [3.5 0; 0 2]}" (mean vector and covariance matrix of a 2D Gaussian). The user input will be passed to the compiled matlab method as a MWCellArray. Problem is how do a convert (parse) the above string into a MWCellArray? From its javadoc http://www.mathworks.com/access/helpdesk/help/toolbox/javabuilder/MWArrayAPI/index.html the following method is available: java.lang.String toString() Returns a string representation of this array, but the reverse method is not. Evidently, parsing a string like the one above is a non trivial task and I'm loath to attempt writing one by myself. I would be very thankful if someone can point me to the required parser implementation. Matlab itself is carrying out this task all the time, perhaps it is possible to access Matlab's own parser. Help much appreciated, Ritesh ...

fit transfer function in matlab
Hello, is there a way to fit a transfer function in matlab? thx Nadine In article <cl3cel$dv6$1@piggy.rz.tu-ilmenau.de>, cavemanX@gmx.de says... > Hello, > > is there a way to fit a transfer function in matlab? > > thx > > Nadine > > > What are you trying to fit - measured data? > What are you trying to fit - measured data? I have build up a tranfer function out of measured data and want to have a model of this, so that I can use it in Matlab. So I want to fit a tf into my measured tf. Nadine In article <cl3ebk$jte$1@piggy.rz.tu-ilmenau.de>, cavemanX@gmx.de says... > > What are you trying to fit - measured data? > > I have build up a tranfer function out of measured data and want to have a > model of this, so that I can use it in Matlab. So I want to fit a tf into my > measured tf. > > Nadine > > > is the data in the time or frequency domain? If it's in the frequency domain, you might look at YULEWALK in the Signal Processing Toolbox. If you have system input and output data, then you have several choices in the System Identification Toolbox. --Loren ...

some problems of codes of MATLAB 7.0 working on MATLAB 6.5
I have used MATLAB for few hours.So I don't know the differences between version 6.5 and 7.0.I want to use some codes of MATLAB 7.0, but they doesn't work in MATLAB 6.5.How to change these codes so that they can work in matlab 6.5.Waiting for your help. Thank you . The codes are like this .I think changing the function findPI may work ,but I don'y know how % PIfun.m % Evaluate a function used to find the PI-line, using Kyle Champley's % method. % % Adam Wunderlich % last update: 5/18/06 function y = PIfun(r,R,h,gamma,x3,sb) temp = R - r*cos(gamma-sb); y = h*((pi - 2*atan(r*sin(gamma-sb)/temp))*(1 + (r^2 - R^2)/ (2*R*temp)) ... + sb) - x3; % find_PI_Line.m % % Find the the parametric interval corresponding to the unique PI-line % passing through the point x for a given helical pitch. % This code implements the method of Kyle Champley. % inputs: P = pitch (cm/turn), R = helix radius, delta_s = s stepsize, x % output: PI = [sb st] % % Adam Wunderlich % last update: 5/18/06 function [PI] = findPI(P,R,delta_s,x) h = P/(2*pi); r = sqrt(x(1)^2+x(2)^2); gamma = atan2(x(2),x(1)); options = optimset('TolX',h*delta_s/100,'FunValCheck','on'); [sb,fval,exitflag] = fzero(@(sb) PIfun(r,R,h,gamma,x(3),sb),... [(x(3)-h*pi)/h,x(3)/h],options); if exitflag ~=1, disp('Error: PI invalid'); end % note that beta=sb in Kyle's formula alphaX = atan(r*sin(gamma-sb)/(R - r*cos(gamma-sb))); st = sb + pi -...

can't run matlab setup/No puedo correr matlab
Hi! I opened the&nbsp;matlab script fractal.vi&nbsp;then my antivirus (Kaspersky)&nbsp;ask&nbsp;if I acept the modified te registry of matlab setup,&nbsp; I &nbsp;say "yes" After that when I want open matlab the setup run but inmediatly it's close, why???? &nbsp; Hola: Abri el matlab script fractal.vi y mi antivirus (Kasoersky)me preguntaba si aceptaba una modificacion del registro del setup de matlab yo acepte Despues de eso cuanto abro matlab se cierra inmediatamente porque?? &nbsp; &nbsp; &nbsp; Hola Sa�l Es probable que el problema est� relacionado con el antivirus Kaspersky, trata de deshabilitarlo y correr nuevamente el ejemplo.&nbsp; Si esto no funciona revisa el estado de tus licencias de LabVIEW y de Matlab, probablemente tengas que reinstalar el programa y/o activar las licencias. �Qu� versi�n de LabVIEW y Matlab tienes? �El comportamiento es el mismo con el otro ejemplo?, me refiero al de la siguiente dir: labview\examples\scriptnode\Differential Equation.llb\MATLAB Script - Lorenz Diff Eq.vi Si corres este ejemplo �El antivirus tambi�n te pregunta cambiar lo de los registros?, ser�a bueno contactar a Mathworks para saber c�mo reconfigurar nuevamente los registros de Matlab ...

ss command in embedded matlab function
I am using Matlab R2010b 32bit. I found out that the commands (ss) and (tf) can not be used in embedded Matlab functions in Simulink. The error message I got is: *************************************** 'tf' is not a supported enumeration. In Embedded MATLAB, classdef can only be used in enumeration contexts and must inherit 'int32' or 'Simulink.IntEnumType'. *************************************** Below is my code: ******************* function sys = fcn(A1, A2, B, C, D) A=[A1 A2]; %A1 and A2 are 2-by-1 column vectors sys = ss(A, B, C, D); ****************** Any hints? Thank you for your time. -Hua ...

LDPC using MATLAB built-in function
Dear sir, In MATLAB there is a built-in function called fec.ldpcenc & fec.ldpcdec. I used fec.ldpcenc and it works; but when i used the fec.ldpcdec to decode the received codeword it failed and always give zero. Can anyone help me on this. Regards Eng. Fawzy fawzy <ahmed.fwzy@gmail.com> wrote: > In MATLAB there is a built-in function called fec.ldpcenc & > fec.ldpcdec. I used fec.ldpcenc and it works; but when i used > the fec.ldpcdec to decode the received codeword it failed and > always give zero. Did you run the function decode()? ldpcdec() may be just a constructor. This should be in the communications toolbox documentation. Steve >fawzy <ahmed.fwzy@gmail.com> wrote: > >> In MATLAB there is a built-in function called fec.ldpcenc & >> fec.ldpcdec. I used fec.ldpcenc and it works; but when i used >> the fec.ldpcdec to decode the received codeword it failed and >> always give zero. > >Did you run the function decode()? ldpcdec() may be just a >constructor. > >This should be in the communications toolbox documentation. > >Steve > My big problem when i use the decode(,) when i use decode function it give me always zero. when i make llr.DecisionType = 'Soft decision' it gives me garpage. i need some help about using this decode with LDPC ...

MATLAB eig function on a tridiagonal matrix
Hi, I am using the matlab function 'eig' on a non sparse symmetric matrix as well as on the tridiagonal matrix. In both the cases eigenvalue's positions are different. Please help me to understand which one is correct procedure. thanks Best regards, Rishi "Rishikesh" wrote in message <jtpf97$idn$1@newscl01ah.mathworks.com>... > Hi, > I am using the matlab function 'eig' on a non sparse symmetric matrix as well as on the tridiagonal matrix. In both the cases eigenvalue's positions are different. Please help me to understand which one is correct procedure. ============= The order of the eigenvalues in the output of EIG is not an indication of their "correctness". MATLAB promises no particular ordering of the eigenvalues. "Matt J" wrote in message <jtpfl8$jpp$1@newscl01ah.mathworks.com>... > "Rishikesh" wrote in message <jtpf97$idn$1@newscl01ah.mathworks.com>... > > Hi, > > I am using the matlab function 'eig' on a non sparse symmetric matrix as well as on the tridiagonal matrix. In both the cases eigenvalue's positions are different. Please help me to understand which one is correct procedure. > ============= > > The order of the eigenvalues in the output of EIG is not an indication of their "correctness". MATLAB promises no particular ordering of the eigenvalues. Is it correct to use matlab eig function over a tridia...

Eval Function in matlab 6 or 7
I use an old Toolbox in Simulink that use eval function (i.e. 'eval('[xd xt]')'. Newest simulink (in Matlab 6 or 7) cannot evaluate this function (only [xd xt] ist ok). Should I ALL eval functions in Simulink Blocks delete or is other solution? Thanks a lot in Advance. Antonio ...

Web resources about - Functions of audioplayer matlab - comp.soft-sys.matlab

Twitter
Sign in Sign up You are on Mobile because you are using an old version of Internet Explorer. Learn more here VeloCite Montreal @ _VeloCite Montreal, ...

The Hot Chick - Wikipedia, the free encyclopedia
The Hot Chick is a 2002 American comedy film about a teenage girl whose body is magically swapped with that of a 30-year-old criminal . It was ...

The warming is hiding in the bottom of the ocean. Someday it will pop out and say BOO!
The Australian Climate Sceptics -Exposing the flaws in the greatest hoax inflicted on the human race. Pages Home Graphs Hall of Shame (aka Bastards) ...

audioplayer
ON AIR - Friday 11th October 2013 View Full Schedule 600 -900 Morning Glory 900 -1200 Hungry for Sport 1200 -1600 Harf Time 1600 -1800 Footy ...

Andrew Bolt & Marcia Langton - Q&A - ABC TV
Andrew Bolt & Marcia Langton: Q&A.

ALFA-MATRIX LABEL GROUP
December 2012 Metroland launch free download (or pay what you want) '2013' Helalyn Flowers joins 'The Greenlight Bundle' game/music charity ...

App Annie App Store Stats - Google Play Top App Charts United Kingdom - Overall
App Annie Store Stats makes it easy for you to track top United Kingdom Overall iOS and Android apps or games on Apple App Store, Google Play, ...

Stiglitz on politics
He and I have different perspective. This is an excerpt from the full-length discussion that is here . [audioplayer file=”http://cafehayek. ...

My Favorite Podcast: The Always-Enlightening EconTalk
Audiobooks and podcasts are handy when you’re on-the-go–while in the car as driver or passenger, sitting in an airplane (especially during meal ...

Media Players for Windows - Free downloads and reviews - CNET Download.com
The most downloaded Media Players software, including Share Speaker Player, Moo0 AudioPlayer, and Show Cue System

Resources last updated: 3/30/2016 12:17:57 PM