Answered
how do i fprintf 2 variables like this
One way amongst many... >> sfx={'st';'nd';'rd';'th'}; >> isf=[1:3 repmat(4,1,3)]; >> for ix=1:6 fprintf('The sum ...

13 years ago | 1

Answered
Why is this mistake?
aceDetector = vision.CascadeObjectDetector(); videoFileReader = vision.VideoFileReader('tilted_face.avi'); videoFrame = ...

13 years ago | 1

Answered
Help with my algorithm creating doubt
Sraightforward, "brain-dead" solution would seem to be indp=false(1,length(x)-5+1); for ix=3:length(x)-2 indp(ix-2)...

13 years ago | 0

| accepted

Answered
how to obtain the frequencies from the fft function
Frequency is totally dependent upon the sample rate of the time signal and duration. Sampling relationships -- Fmax=1/2d...

13 years ago | 3

Answered
Subscript indices must either be real positive integers or logicals.
The answer is in the following-- >> fs = 8000; >> Fs = 10*fs; >> t=0:1/Fs:2; >> y = t/(1/Fs)+1; >> all(fix(y)==y) ans ...

13 years ago | 0

Answered
edit text on contour plot
Use the return value functional form [C, H] = contour(...) returns contour matrix C as described in CONTOURC and a han...

13 years ago | 0

Answered
what is thing must I do?? to pass this error?
Just an aside, not a single one of your tags has anything whatsoever to do with the question/problem... 'horzcat' is the func...

13 years ago | 1

Answered
Comparing matrices with different dimensions
Since your values are in the first two columns, it's fairly easily written... >> res=a(ismember(a(:,1:2),v,'rows'),:) res ...

13 years ago | 0

Answered
How to add limited row to specific row
Don't need any *if* (if I understand your request, anyway)... >> A = reshape(B',9,[])'; A = 7 6 9 6 ...

13 years ago | 1

Answered
How to modify the code of a running script?
Nope...the code is loaded in memory so changing the m-file doesn't do anything to the running process. And, unless you wrote ...

13 years ago | 1

Answered
syntax help--creating file path
inputs{1, crun} = cellstr(spm_select('FPList'[allinput,'MOVr1',filesep,Order{crun,1}],'^raf.*\.img$')); No idea what you ...

13 years ago | 0

| accepted

Answered
Is plotyy producing jitter in the x-axis, or is it my code?
It's your code... :) [AX,H1,H2] = plotyy(State_Time, Alt, State_Time, SV_ID, 'semilogy', 'plot'); axes(AX(1)); set(gca, '...

13 years ago | 0

| accepted

Answered
Vectors of different length when using plot3.
Why not try it and see if it's the effect desired? From doc plot3 ... plot3(x,y,z), where x, y and z are three vect...

13 years ago | 0

Answered
How to run a specific line of code of a function from gui??
Each then needs to be the guts of the callback for the specific button

13 years ago | 0

Answered
How can I get "P" for each Gas
... P = ((R*T)/[V*ones(1,5)]'-Table{:,4})-Table{:,3}./[(V^2)*ones(1,5)]' ??? Error using ==> minus Missing a '.' in the...

13 years ago | 0

| accepted

Answered
What am I doing wrong with this?
I don't know about the first per se since you didn't actually show the error message it's not worthwhile to waste time trying to...

13 years ago | 0

Answered
Convert vector to matrix with used-defined step
Think storage order... :) One (of many possible) solutions... >> V = [1 2 3 4 5 6]; >> reshape([V(1) reshape([V(2:end-1...

13 years ago | 0

Answered
Using variables between m-files
Aircode -- untested!!! :) This uses the nested function solution technique so that the variables in the function *misfunc* w...

13 years ago | 0

| accepted

Answered
Using variables between m-files
You must either a) make the variables GLOBAL so they're available in the other functions (*HIGHLY* _not_ recommended), or ...

13 years ago | 0

Answered
Matlab gets stuck - No error message
I firmly say it likely (given the pseudo-code if...end conditional blocks above) *IS* occasionally finding a set of conditions t...

13 years ago | 1

Answered
how to find value T for every x so that the result of a functions e(T,x) is (for example) 0.1
doc fsolve By your description it's a single variable to solve for a zero at a series of x values. Wrapping fsolve in a ...

13 years ago | 0

| accepted

Answered
what is 'imtile' function?
Doesn't show up in the 2013 doc search -- try the File Exchange or ask whomever from which you received the code for the helper ...

13 years ago | 0

Answered
How to put numbers by each stacked bar?
doc text % num2str() and/or ssprintf() are your friends here, too...

13 years ago | 0

Answered
Matrix Output displays Incorrectly
... ansdat=[ansdat;iter vm v vp err fv fvm]; if err < 1e-4 %exit error is less than 0.0001 format shor...

13 years ago | 0

Answered
How to search for specific characters within a string.
The OS wildcard search isn't flexible enough directly; I'd just return them all and then winnow the list while processing it -- ...

13 years ago | 0

| accepted

Answered
Importing multiple txt files using a combination of for loop and eval
Don't use evil *eval* for this...see the FAQ (there's also examples in the doc's now) <http://matlab.wikia.com/wiki/FAQ#How_...

13 years ago | 0

| accepted

Answered
Dificulty on fscanf with '%s'
Yeah, *fscanf* format scanning is a pita for mixed fields owing to the penchant of %s to read everything. Here's where *texts...

13 years ago | 0

| accepted

Answered
How to select multiple input file one at a time.
Several options depending on what you want/need... a) if you're processing all the *.txt files in a subdirectory, there's no ...

13 years ago | 9

| accepted

Answered
Fread format causes errors
Maybe it'll be easier to see w/o the obfuscation of the substitutions...what you ahove above translates to c1=fread(fid,[2,...

13 years ago | 0

Answered
Plotting Two Gaussians on One Histogram
Basic idea; I've got to run so you can fill in the inbetween by adding the appropriate bin counts and drawing the line on top or...

13 years ago | 0

Load more