Description:
The MathWorks calculation and visualization package.
|
|
|
How to play .avi in gui axes?
|
| |
I was playing around with GUIs, and I am stumped on something. I have a .avi file and wanted to play it in an axes in my GUI, how could I go about this with a loop? I have read up on the funcitons like movie(m) and getframe, but this has only confused me more. Any help is appreciated.
|
|
xcorr functional equivalent for linear-cirlcular cross-correlation?
|
| |
Hello, I'm trying to generate an estimate of the cross-correlation function for 2 time series. One time series is linear (domain -Inf - Inf) and the other is azimuthal (domain 0 - 2pi). If both functions were linear, I would simply use xcorr and be done. But here I can't do that. I've searched this site and found the (very useful) Circular Statistics Toolbox which has a function called "circ_corrcl" which computes the correlation coefficient between a vector of samples representing a linear random variable and a vector of samples representing a circular random variable. However, this function only gives one correlation coefficient value and one p-value as output.... more »
|
|
help
|
| |
Write a function q1 10a that receives an integer n and returns n/2 if n was even and 3n + 1 if n was odd. To test if a number is an integer it is convenient to use the MATLAB function floor( ) which returns the largest integer smaller than the input number. For example floor(4.9) = 4 and floor(-1.1)=-2 and floor(15)=15. (Try this out!)... more »
|
|
Help! Need to save Movie
|
| |
Help! I need to get my animation so that it saves as a file and does not print to screen. The runtime is very long. If I do movie2avi (Mov,'name.avi') I get an error saying that Mov is an unknown function or parameter. Need help quick please! temp2 = mod(n,100) if temp2 == 0 V = V + 1 surf(x,yxzold,qold)... more »
|
|
Solving Non Linear Equations =(
|
| |
OK so here goes my problem. I have spent ageeeess on this! Any help would be soo appreciated! Even if you can point out where I'm wrong..! Question: Solve the following system of equations by using Newton's method by implementing it in Matlab: f1 = 4 - 8*x1 + 4*x2 - 2*(x1)^3 = 0 f2 = 1 - 4*x1 + 3*x2 + (x2)^2 = 0... more »
|
|
isfield sub-fields question and loading field without switch statement
|
| |
Hi all, Two easy questions for you that I could not find an answer to: 1) I am sorting data into several sub-fields, such as A.B.C.D1 through A.B.C.D5 Now if I want to load A.B.C.D4 I need to use isfield to check if it exists first (I want to avoid all red text errors!). Is there an easier way to do this rather than use isfield 4 times for A, then A.B, then A.B.C and then A.B.C.D4?... more »
|
|
loop,matrix
|
| |
k=1;l=1; for t=1:89 if(countvec(t)<60) voiced(k:k+159)=y((t-1)*160+1: (t-1)*160+160)'; k=k+159; else unvoiced(l:l+159)=y((t-1)*160+ 1:(t-1)*160+160)'; l=l+159; end end Hi everyone, In the above code I am trying to separate voiced and unvoiced components.If the value in countvec<60,the corresponding frame of original signal is assigned to the current frame of voiced else the same is done to unvoiced.But,I am not getting the required waveform.I want to know what is the flaw in the above segment.Pls help.Thanx in advance.... more »
|
|
kstest2 p-value
|
| |
Hello, I am using kstest2 to compare expected and observed distribution for 2 different samples. For sample1, these are 10 expected and observed values: exp1 = [52091;52183;51507;50879;50765 ;49574;49197;48476;47754;48004 ]; obs1 = [2;6;35;22;19;4;2;2;0;0]; For sample2, these are 10 expected and observed values:... more »
|
|
Plotting figures in a for loop - please help!
|
| |
Hi all, Having some trouble getting this piece of code to work. Basically I'm running a for loop at the end of a long script, and I want it to plot a new figure at each iteration of the loop. All variables have previously been declared, the loop however is only running one iteration and plotting the first figure only.... more »
|
|
|