In article <1g294ec.t1o3b61mncv9sN%dpaindav@ulb.ac.be>, dpaindav@ulb.ac.be (Davy Paindaveine) wrote: > In Matlab, the function finv computes the quantile function of a > F-distribution. Unfortunately, the command finv(p,v1,v2) only allows for > DFs v1 and v2 that are POSITIVE INTEGERS. Would anyone have a > modification of this function which allows to deal with fractional DFs? > (F-distributions are defined in terms of chi-squares, which themselves > are particular cases of Gamma-distributions allowing non-integer DFs...) As I remember, an F distribution is related to the incomplete beta function (betainc) via a simple transformation. So just use a rootfinder like fzero on betainc and you have a decent solution. It will not be vectorized, but this is rarely something you do in volume unless you are generating F random variates. This last is possible too, though it takes a little work. A trick I remember finding useful is to use shift identities for the beta function. These allow you to shift the beta parameters using an integration by parts, useful for problems with very small beta parameters. The identities are found in Abramowitz and Stegun. Yell if you need more help, and just remember it could be worse - you could be trying to do all of this for a non-central F. HTH, John D'Errico -- There are no questions "?" about my real address. The best material model of a cat is another, or preferably the same, cat. A. Rosenblueth, Philosophy of Science, 1945

0 |

10/4/2003 6:31:58 PM

Hallo everybody, In one of my MATLAB functions I invoke external EXE file (another program), which makes some calculations. At the end of the calculations a message appears if I want to quit the exernal program (with 'Yes' and 'No' buttons). I want to close this message, because it interrupts the executaion of the whole MATLAB function(a batch file). The message is generated from the exernal program, not from MATLAB, so I can't use a MATLAB handle to close it. So, does anybody knows how I can close those non-MATLAB generated message (GUI) with a command in the MATLAB...

Hello, all: Thank you in advance for the help. I have to admit that I am almost ignorant on wavelet although I sometime use the matlab wavelet toolbox for de-noising. I need to do some lossless compression using wavelet. I found the reference [1]. But it is beyond my domain to implement it. I am I am wondering if the integer to integer transform using wavelet has been implement as a function in matlab. The function probably should look something like transformed_integer_series = wavelet_int2int(original_integer_series, wavelet_chosen) Thank you very much... Alex [1] Wavelet Transform...

A data analysis package I use (built on top of matlab) has a function for doing fractional time shifts of time series with constant sampling rates. It uses the fft and multiplication on the frequency side. The only thing I'm wondering is what to do about the fact that the data are not periodic. What the authors of the matlab function did is work with sequences of length equal to the power of two strictly greater than the length of the data. And their padding scheme for the added timepoints was just to linearly interpolate from the last datum "forward" to the first datum...

Hi, How can I use matlab to ask if a value is a positive integer? Also if possible how can I make it increase to the next highest positive integer?? i.e, if a ~= positive integer a = a + ? where a = value and 'a = a + ?'-increase a to next highest integer. Any ideas? Thanks in advance Dan Try help ceil help floor help round help fix Leandro email: char(eval('[0 -30 -5 -30 -10 21 38 21 30 21 39 -12 29 25 25 25 -30 35 38 27]')+upper('l')) Daniel Jones wrote: > > > Hi, > > How can I use matlab to ask if a value is a positive integer? Also &g...

Short background info: I am working on a 2-dimensional finite-difference time-domain algorithm in polar coordinates. The program creates r and phi vectors, then steps through them to calculate the equivalent Cartesian coordinates with identical indices. (Essentially the same thing meshgrid and pol2cart would do in unison) The Cartesian grid is, of course, non-uniform and has non-integer values. The program is centered around a time loop that has three 2-D spatial loops in it to calculate two magnetic fields and an electric field. I am interested in a 2-D animation of the electric field o...

Is there a way i can make a Matlab figure on top of all windows (Matlab or non Matlab)?? Thanks Hi, <http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=8642> <http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=11684> J�r�me abhiM wrote: > > > Is there a way i can make a Matlab figure on top of all windows > (Matlab > or non Matlab)?? You can programatically pop the active figure to the top of any windowing system using Matlab's (titter, titter) "shg" command. ...

Hi all I have a linux box with MATLAB installed on it. I want to launch some MATLAB scripts on it from MATLAB on my desktop PC, but I don't want the command to block, i.e. I want the command prompt re-appear immediately, and for the command to be run asynchronously on the box. To be clear, every command I send should start a new instance of MATLAB on the linux box, and run in that. There is no communication between the two MATLABs once the command is sent. I can do this from a linux PC fine, using: a = round(clock); str = sprintf('ssh cvg-1 "nohup /opt/matlab2010a/bin/ma...

greeting all, i'm using nonlcon(nonlinear inequality constraint) with GA from the toolbox provided by matlab. does anyone notice the extreme slowlness in evaluating nonlinear constraint as compared to other linear constraint? my problem for nonlinear constraint is as follow c(1)=x+y^2-2*ones(N,1) where x and y are Nx1 vector. which means if N increases, the size of constraint increases. and to clarify, the min problem is sometime like min c'z where z=[x;y], which means x and y are some range of variable within z(just a matter of problem formulation) well, is there anyone with ot...

Hi, I am new for mat-lab , i want to use Java generic class in mat-lab myList =java.util.ArrayList<List<Integer>>(); instead of mat-lab myList = java.util.ArrayList(); my sample example code : myList = java.util.ArrayList(); while(1) matrix =[co-ordinatate_x;co-ordinatate_y;co-ordinatate_z;co-ordinatate_xy;co-ordinatate_yy;co-ordinatate_zx;co-ordinatate_zy;co-ordinatate_zz]; %1-by-8 various values for k=1:length(matrix) list.add(java.lang.Integer.valueOf(matrix(k))); end end I would like expected result like : [[264, 171, 212, 173, 2...

Hi all, I have a calculated control on a report which sums the billing units for each client for each month and for each type of service they received. Is there a way to filter the report to show only clients who have total billing units which are NOT whole numbers? e.g., client-1 total units: 10 client-2 total units: 3.5 client-3 total units: 2.25 client-4 total units: 16 -- I would like the report to show only clients 2 and 3 (perhaps I need to base the report on a Totals query, but I still need to filter-out any totals which are integers). Thanks for any help. Mark -- Allen B...

Hi, I have an image matrix cointaining doubles with value range between 0 - 87. I want to store it as a dicom and maintain the original values. I have tried rescaling to 16 bit range and setting the MaxPixelIntensity Property to 87 but it does not work. Does anyone know if it is possible to save these non-integers as dicom using matlab? Best regards Soren ...

Please what commande i must to use in matlab for integrate my function: dg/dt = f(t) thank you to orient me On Sep 2, 1:39=A0pm, ginafort <najl...@yahoo.fr> wrote: > Please what commande i must to use in matlab for integrate my function: d= g/dt =3D f(t) > thank you to orient me >> lookfor integral .... QUAD Numerically evaluate integral, adaptive Simpson quadrature. QUAD8 Numerically evaluate integral, higher order method. QUADL Numerically evaluate integral, adaptive Lobatto quadrature. .... Hope this helps. Greg ...

This may be a very elementary question, but I was wondering if the histogram function can accept a binsize < 1? I am using the hist_2d function to determine the density field of some lat/lon locations in a dataset. These values range 4 deg lat and 4 deg lon. In order to determine the # of points per square km, I have setup the hist_2d function as follows: IDL> result=hist_2d(lon,lat,max1=lonmax,min1=lonmin,max2=latmax,$ min2=latmin,bin1=1/111.,bin2=1/111.) where the size of bin1 and bin2 are the approximate conversions from km to degrees (1km=.09 deg). Since hist_2d needs two bins,...

Hi All, I am trying to understand how a non-integer interpolating filter works. For ex: In a 1.5 case, you would upsample by 3 and then down sample by 2. How is the convolution between input samples and filter coefficients choosen given that there are 3 sub filter? for an interolation by 3 filter the 1st sub filter(for a 15 tap) would be Y1(n)=x(n)*h(0)+x(n-3)*h(3)+x(n-6)*h(6)+x(n-9)*h(9)+x(n-12)*h(12) Y2(n)=x(n-1)*h(1)+x(n-4)*h(4)+x(n-7)*h(7)+x(n-10)*h(10)+x(n-13)*h(13) Y3(n)=x(n-2)*h(2)+x(n-5)*h(5)+x(n-8)*h(8)+x(n-11)*h(11)+x(n-14)*h(14) How would these change for a in...

β-expansions are a generalization of decimal expansions . While infinite decimal expansions are not unique (for example, 1.000... = 0.999... ...

Resources last updated: 2/3/2016 11:08:53 AM