Answered
Convert the wave file to a 16 bit signed binary format
Would seem simplest to just use the optional FMT input argument to *wavread* and set the format of the returned values... [...

12 years ago | 1

| accepted

Answered
How to reduce execution time without using FOR loops?
Can replace the computation of _v_now_ with *conv2* >> a=rand(5); >> for i=2:4,for j=2:4,b(i,j)=(a(i-1,j)+a(i,j-1)+a(i+1,j...

12 years ago | 1

Answered
how do I call a fortran executable in matlab problem
doc system It makes no difference what language the executable was written; the OS doesn't care.

12 years ago | 0

Answered
in an assignment a(i) = b the number of elements in b and i must be the same
I didn't see the location for the assignment problem (and you didn't supply the line the error occurred on) but... [~,c]=mi...

12 years ago | 1

Answered
Place blank entries by zeros
a(cellfun(@isempty,a(:,end)),end)={0} worked here...had to convert the ',' decimal points to '.' to enter the array, howeve...

12 years ago | 1

Answered
How to plot a graph that have both dates and time in the same x-axis
... plot(d,c1); datetick('x','dd/mm/yy HH:MM:SS','keeplimits'); See doc datetick for details. You'll likel...

12 years ago | 0

Answered
Attempted to access x(2); index out of bounds because numel(x)=1.
_'Attempted to access x(2); index out of bounds because numel(x)=1'_ function L=ga1(x) .. FT=x(1)*L0+x(2)*Lrst+x(...

12 years ago | 0

Answered
Does order of multiplication in a for loop matter?
_...I would expect ... should be the same since all I did was change the order of multiplying one term in the for loop..._ Th...

12 years ago | 0

Answered
Data is not valid NDGRID format.
From the doc for *interpn* one finds... "interpn requires that X1,X2,X3,etc. be monotonic and plaid (as if they were cr...

12 years ago | 0

| accepted

Answered
How to make a function like eval ?
function out=my_eval(in,isStr) if isStr out=in; else out=evalin('caller',in); end doc evalin...

12 years ago | 0

| accepted

Answered
Plot different signals in a single plot using days as reference on the x-aixs
Convert the dates to Matlab *datenum*, plot against them and use *datetick* to create the time-basis x-axis. Examples are in ...

12 years ago | 1

Answered
how to create 2X10000 matrix using for loop in matlab
Given an x vector of length 20003, X=[x(1) -x(2:2:end-2).*x(3:2:end-1); ... x(2) x(1:2:end-3).*x(4:2:end)]

12 years ago | 0

Answered
How to change the axes position in matlab
A start...still, check File Exchange; may already be done for you... >> x=linspace(0,2*pi,100); y=sin(x); >> plot(x,y) ...

12 years ago | 0

Answered
remove elements...and save in another vector...
Not fully developed, but how about working from the following... >> pz=reshape(find(P==0),2,[]).' pz = 1 9 ...

12 years ago | 0

Answered
need data about tach signal?
Starting point could be something (from the *pulstran* example)... >> t = 0 : 1/1e3 : 1; % 1 kHz sample freq for 1 ...

12 years ago | 1

| accepted

Answered
How to change the axes position in matlab
Not a settable choice in handle graphics -- x-axis can be "top|bottom" and y is either "left|right" -- "center" isn't a choice. ...

12 years ago | 1

Answered
How to do this efficiently?
OK, from the loop solution one can write [x,y]=ndgrid(0:N-1,0:N-1); A=max(Ts.*x+taup,Ts.*y+tauq); trading memory for ...

12 years ago | 0

Answered
Seemingly unrelated error message: In an assignment A(I) = B, the number of elements in B and I must be the same.
In an assignment A(I) = B, the number of elements in B and I must be the same. Error in HIVTBeqns (line 47) ydot(1)...

12 years ago | 2

| accepted

Answered
how can i open .out extension file in matlab ?
num_cameras num_points [two integers] f k1 k2 [the focal length, followed by two radial distortion coeffs] R [a 3x3 matrix r...

12 years ago | 1

Answered
How to check if file name has a certain ending?
dNoExt=dir('*.'); Returns all files with no extension in CWD in the *dir* structure dNoExt. Process as for i=1:length...

12 years ago | 2

Answered
Is Matlab's FileExchange compatible with the Affero GPL license?
Read <http://www.mathworks.com/matlabcentral/termsofuse.html> particularly (2.b.c)

12 years ago | 1

Answered
How to do this efficiently?
_...I want to find the matrix A where [A]_{k,m}=a[k,m]..._ A=max(RowInc*Ts+tau(pp),ColInc*Ts+tau(qq)); will end up w/ ju...

12 years ago | 1

Answered
How can i split up my large .csv file?
If you can read the file into Matlab, sure...just write the sections you wish doc xlswrite for details on the writing. ...

12 years ago | 1

| accepted

Answered
how can i open .out extension file in matlab ?
_line no. 4 to 6 is a 3x3 matrix. how can i read it?_ Create a dummy file w/ a 3x3 array... >> dlmwrite('ba.txt',rand(3)...

12 years ago | 0

| accepted

Answered
How do I convert an integer into a binary vector?
v=dec2bin(intval)-'0';

12 years ago | 1

Answered
Is there a way to plot original set of data onto biplot?
biplot(... hold on scatter(gca,x,y); should get you started.

12 years ago | 2

Answered
Memory leak from plotting?
Don't keep making new objects; there's where the overhead is. See the doc's for guidelines on animating plots at <http://www.ma...

12 years ago | 1

Answered
Could anyone explain the code for me ?
_...IF the file is not in current directory..._ Then include it in the argument to *dir*, of course... file_path = 'C:\U...

12 years ago | 0

Answered
Find The zeros in my data ... and then add the value before the zero to the rest untill finding another zero.
Check out John's *inpaint_nans* submission--of course, you'd first convert the 0's to NaN excepting for the first... <http://...

12 years ago | 1

Answered
how to sum matrics inside a cell array?
Oh, misunderstood the query...that's simply S=plus(R{:}) S = 1.3771 0.5139 1.1590 0.7149 >> all(all(S==R{...

12 years ago | 6

| accepted

Load more