Answered
checkDisplayRange error
for i = 1:nFrames %1 movie_in = aviread(fin,i); [Stack(:,:,i),map]=frame2im(movie_in,i); end I think you wan...

15 years ago | 0

Answered
Code to edit a file name?
string = 'hello world' sm3 = string(1:end-3); %string removing three letters.

15 years ago | 1

Answered
MATLAB crashes when i use plot command
I couldn't find any specific bug report that relates to what you're seeing, but I do remember snow leopard not getting along wit...

15 years ago | 0

Answered
About Matlab Code
Alright - darkness golf f=@(n)etc I can do it with 38 characters (lt); 39 (le).

15 years ago | 0

Answered
Removing invalid results
Replace all of your implausible values (whatever criteria you use to determine that) with nan. Then apply your function to the ...

15 years ago | 0

| accepted

Answered
How to stop matlab M file from stopping my program when error occur?
doc try use a |try/catch| block

15 years ago | 1

Answered
if statement
It sounds like you may want to use cell arrays. Where each signal is a cell. The you do that operation to each cell with eithe...

15 years ago | 0

Answered
About Matlab Code
I think the answer to your question is already answered in the video comments.

15 years ago | 0

Answered
How can I display values to one decimal place?
Use |sprintf| sprintf('%1.1f',pi)

15 years ago | 1

Answered
Finding x-axis crossing point for cumulative cash flow
What about |fzero| with |interp1| as the engine of the function? *EDIT per comment* Not really; N does not need to be large. ...

15 years ago | 0

Answered
image segmentation
Well it kinda depends on your image. It's a lot easier to segment some things than others. There is no "best" technique. If y...

15 years ago | 0

Answered
How to plot the histogram of a volume using imhist?
So you want to see the histogram as a surface plot? There are a couple of tools for this on the fex. Or do you want a 2-d his...

15 years ago | 0

| accepted

Answered
Identify areas of an image based on their surroundings
No. The first step is how do you define "green" "blue" and "red". Once you have that - then you pass a filter over the image! ...

15 years ago | 1

| accepted

Answered
How can this be true? (<) operator not working
<http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F FAQ6.1>

15 years ago | 2

Answered
ant colony optimization
This doit4me got lucky: <http://www.mathworks.com/matlabcentral/fileexchange/?term=ant+colony FEX:ant+colony>

15 years ago | 0

Answered
Command similar to 'ASSERT' (in python) in Matlab?
of course doc assert !

15 years ago | 0

| accepted

Answered
Find x value for given y value for 3rd order polynomial equations
doc fzero Set your function up to equal zero i.e. y = 3.1; f = @(x)-4E-7*x.^3 + 3E-4*x.^2 - 9.62E-2*x + 12.737 - y; ...

15 years ago | 0

Answered
How to make a code continue running if while loop returns NaN
while something || isnan(something_else) %etc. end

15 years ago | 1

Answered
Hold True Value for finite length of time
doc pause or doc timer

15 years ago | 0

Answered
Decrementing an Array
n = n-min(n(:)); ? And the way to fix your |if| statement is to use |any| as the criterion. while ~any(n==0) n = n-1;...

15 years ago | 0

Answered
doc command doesn't work in try/catch blocks
try error catch doc randi end works for for me, R2009b Mac64bit.

15 years ago | 0

Answered
How do I make atrifacts for a synthetic image?
Ring artifacts and reconstruction artifacts for a parallel beam configuration: I = imread('cameraman.tif'); theta = 0:.1:1...

15 years ago | 1

Answered
adding a condition to blkproc()
Just use this as your function function out = meanZ75(in) %mean sans zeros if there are 25% or more zeros %pure mean if there...

15 years ago | 1

Answered
Selecting a region in an image
There is a demo for this in the documentation for the Image Processing Toolbox.

15 years ago | 0

Answered
ERROR MESSAGE: ??? Undefined function or method 'pcacov' for input arguments of type 'double'
Do you have the statistics toolbox? ver at the command line to see if you have it/have it installed

15 years ago | 0

Answered
save the variables whose names are always changing over different loops
Don't do this!!! <http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F FAQ4.6>

15 years ago | 2

Answered
Getting data values from a plot
You mean fit a line to it and solve? Sure, use |polyfit| and |polyval|. doc polyfit doc polyval

15 years ago | 0

Answered
Importing Excel Serial Numbers into Matlab
format long and you'll see it's probably importing all of it just not showing it to you.

15 years ago | 0

| accepted

Answered
Rotating a Vector
Unless I'm missing something just use the rotation matrix: v = [-1 -12]; theta = 5; R = [cosd(theta) -sind(theta); si...

15 years ago | 2

Answered
Filter evenly spaced vertical and horizontal lines
%A is your variable Mx = false(size(A)); %masks in each dimension My = Mx; [fx fy] = gradient(A); idx_x = find...

15 years ago | 0

Load more