Answered
point in convex hull?
There is a file on the File Exchange called 'inhull'. I have used it for precisely this purpose. <http://www.mathworks.com/ma...

14 years ago | 2

Answered
fmincon satisfying constraints
I've had this problem before with fmincon. Unfortunately, I could not figure out a way to force MATLAB to ensure that the interm...

14 years ago | 0

Answered
Re-formulate the image into a vector of zeros and ones.
If your image is an indexed or grayscale image, it is just a matter of comparing the image to a pre-defined threshold. You will ...

14 years ago | 0

Answered
invalid file identifier when more text files are introduced
I'm not that familiar with the Java errors that Matlab can throw, but this one looks like you have too many open file identifier...

14 years ago | 1

Answered
curvature direction
It sounds like you mean you want to find the curvature itself (using a technique like shown here: <http://en.wikipedia.org/wiki/...

14 years ago | 0

Answered
basic code question
It is a function handle. It means that you are defining an anonymous function 'kerf' that takes z as an input. The actual equat...

14 years ago | 0

| accepted

Answered
curvature direction
Is the circle actually part of an image, or do you have the coordinates of the circle? If you have the coordinates, it's just a ...

14 years ago | 0

| accepted

Answered
unique
Take a look at the second and third outputs in the documentation for 'unique', to see how to determine which rows were deleted...

14 years ago | 0

Answered
cropping
doc imcrop

14 years ago | 0

Answered
Seeking help to automate a simple process if possible
For automation, it would be a lot easier if you can call the function from the command line, without having to do any of the mou...

14 years ago | 0

Answered
Drawing a semi-circle in Matlab about a point
th = linspace( pi/2, -pi/2, 100); R = 1; %or whatever radius you want x = R*cos(th) + 5; y = R*sin(th) + 4; plot(x,y)...

14 years ago | 6

| accepted

Answered
Help with lower/upper limit and step problem
To get you started, doc colon doc mod

14 years ago | 0

Answered
image
Hi Krishendu, Suppose you call imread as follows A = imread('/filename.jpg') The resulting matrix A will be MxNxP, wh...

14 years ago | 0

Answered
FSOLVE No Solution Found yeilds valid answers
Does MATLAB throw an error or a warning? If it's a warning, you can turn the warning off using warning(WARNID,'off') wh...

14 years ago | 0

Answered
How to find the pixel value at any point on a greyscale image(not on an rgb image?)
Function impixel works for grey images too. For such an image, all three RGB values will be the same.

14 years ago | 0

| accepted

Answered
What am I doing wrong!?
This is not the approach you want to follow. First, you are calling feval, which will not minimize anything, only evaluate a spe...

14 years ago | 0

Answered
Forced Vibration Test Data - Damping calc from frequency response data
Calculate the error between d and 1, and find the index where this error is minimized, which represents the point where Strain i...

14 years ago | 0

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

14 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

14 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

14 years ago

Answered
Plotting the resual difference between two plots, example picture in the thread.
Add to your code: hold on; line([x;x], [yx;y],'color','green'); plot(x,yx,'bo','markerfacecolor','blue'); You can ...

14 years ago | 0

Answered
Principle Components Regression
Check out princomp in the Statistics Toolbox.

14 years ago | 0

Answered
Matlab figure
All of the data that is presented in the figure is provided in the figure file itself, so you don't need the original M-file tha...

14 years ago | 1

| accepted

Question


fmincon get x/fval if output function stops execution
Hello all, I am performing a constrained nonlinear optimization using fmincon, which for convergence reasons I wish to have a...

14 years ago | 1 answer | 0

1

answer

Question


DAQ Toolbox Counter Input integer overflow problem
Hello everyone, I am trying to sample a counter output from a position encoder attached to a servo motor. I am sampling the c...

14 years ago | 1 answer | 0

1

answer