Answered
signal in and signal out need to be shifted to match one another...
Don't know that it'll help your run time unless you can minimize the lags over which you run it, but the basic way to overlay th...

13 years ago | 0

| accepted

Answered
How can I display the mirror image of text in a textbox?
doc fliplr

13 years ago | 0

Answered
Getting handle for subplot of saved figure
A) If you know the number of subplots/orientation a priori, then h=subplot(n,m,i); will return the handle for the existi...

13 years ago | 4

Answered
Windows Matlab to Linux Matlab
Again as another poster asked very similar query, up to the point they use OS-specific features or such things as COM interfaces...

13 years ago | 0

Answered
taking an average histogram from number of histograms
I'm really no image processor but aiui, *imhist* returns 256 bins for a grayscale image so why isn't it simply the accumulation ...

13 years ago | 1

| accepted

Answered
How can I import a file that contains text and numerical values?
Lose the blanks in the format string--that's causing grief in trying to match them in the parsing... >> fid=fopen('ryan.txt...

13 years ago | 1

| accepted

Answered
How can I add an additional overall legend for additional data overlaid on a 3x1 subplot, which already has a legend for each of the 3 plots?
I had an example much more like the following in mind... x=1:10; y=rand(12,10); % make up some data t...

13 years ago | 0

| accepted

Answered
Keeping Some MATLAB Function Input Arguments Inactive
OK, I reformatted the above and shortened names down to not be so much obfuscation by excess amounts of superfluous characters.....

13 years ago | 0

| accepted

Answered
Running a windows matlab file on a linux system
m-files are just source text files so as long as the version on the Linux system is new enough compared to the version under whi...

13 years ago | 0

Answered
Can any one find whats problem in this code
while (abs(RU-D)) > 0.03 ... while (timer < cduration) ... while (timer < end_burst) && (timer < cdu...

13 years ago | 0

Answered
Processing many sequential files
See your identical posting on newsgroup.

13 years ago | 0

Answered
How to solve the error messege in matlab?
vd=find(comp==max(comp)); if vd==1 || vd==2 As the error says "||" is the short-circuiting version of "|" and can only b...

13 years ago | 0

Answered
Error in my code.....
function FebEuclid() ... I1=rgb2gray(I1); h1 = Histo(I1); ... function[h]=Histo(I) ... for i=...

13 years ago | 1

Answered
Scientific notation to decimal?
>> sav=1.0418e+06; With cents displayed... >> disp(num2str(sav,'%.2f')) 1041800.00 Whole dollars... >> disp(n...

13 years ago | 6

| accepted

Answered
How can I specify different entires in a vector - partially using a function
For the specific inputs so you don't have to think any... function y = ICondition(L, dx) x = 0:dx:L; n = length...

13 years ago | 1

Answered
How can I specify different entires in a vector - partially using a function
function y=initial_cond(x,x0,x1) % define function f(x)=(x-x0)^2 * (x-x1)^2 % over range x0 <= x <= x1; % f(x) = 0 otherwi...

13 years ago | 1

Answered
Series of subplots that are continuous through multiple figures
nrows = 8; ncols = 5; nplts=nrows*ncols; nfigs=ceil(length(input)/nplts); h=zeros(nplts,nfigs); % hang onto t...

13 years ago | 0

| accepted

Answered
How do you get MATLAB to repeat the fgetl or fgets command n times
fid=fopen('mydata.csv');\ s=input('How many lines do you wish to display? ', 's'); N=str2num(s); for i=1:N disp(...

13 years ago | 1

Answered
Fastest Way to write data to a text file - fprintf
It's a pita for mixed fields--I don't know of any clean way to mix them in *fprintf* c I generally build the string array int...

13 years ago | 0

Answered
How can I combine multiple text files with the same prefix but in different folders?
I'd use the shell COPY command either just directly from the shell or if really must needs be programmatically sotoo... dna...

13 years ago | 1

Answered
curve fitting tool box
Of course the equation is right--as the message says p1 and p2 are coefficients for the normalized x. Substitute in z=(x-3.5)/1...

13 years ago | 0

Answered
Plotting spectra...(rescaling x axis)
Simplest is to simply build the x vector and use it to plot() against instead of the default index vector. If it is indeed li...

13 years ago | 0

Answered
How can i call C function in matlab script?
If the C function is in a shared library (.dll in Windows) use the loadlibrary interface; if not you have to have an interfacing...

13 years ago | 1

Answered
Adding a title to save file that is dynamic
Sure, just build a new filename instead of reusing the old one...use pieces of the old if desired, of course. You just have to ...

13 years ago | 0

| accepted

Answered
Resultant matrix is rotated 90 whether I use MEX or MatLab function
Matlab and C differ in internal storage order--Matlab is _column_ major whereas C is _row_ major. IOW, the first index in 2D ar...

13 years ago | 2

Answered
Selecting unique tracks to plot multiple lines in a figure?
The loop solution... u=unique(ds(:,1)); ix=u(1)==ds(:,1); % find first set locations plot(ds(ix,2),ds(ix,3)) % plo...

13 years ago | 0

Answered
Issue with axis tick labels
set(gca,'XTickLabel',['0';' ';'10';' ';'20';' ';'30';' ';'40']) The '0' and the ' ' aren't same length as the '10', etc. ...

13 years ago | 0

Answered
Linear regression comparable to excel
If you have Statistics Toolbox there's regstats that's close (missing SS terms) or the LinearModel that has all of 'em. That no...

13 years ago | 0

Answered
Help with vectorizing find command
parents=accumarray([1:2]',r,[],@(x) indexes(find(x<cs,1)));

13 years ago | 0

Answered
How do I find the maximum and minimum of a histogram in MATLAB?
doc min % and/or max Look at alternate (optional) returns.

13 years ago | 0

Load more