Solved


Is my wife right?
Regardless of input, output the string 'yes'.

12 years ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

12 years ago

Solved


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

12 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

12 years ago

Solved


Eliminate unnecessary polygon vertices
Suppose you have an n-point polygon represented as an n-by-2 matrix of polygon vertices, P. Assume that the polygon is closed; t...

12 years ago

Answered
Problem trying to access labeled portion of images (updated 7/5)
The error occurs for m=559. If you look at the object: figure, imshow(K==559) set(gca,'xlim',[481 580],'ylim',[500 6...

12 years ago | 0

| accepted

Answered
fminbnd fails to converge with exitflag=1
because TolX is a measure of change in x between two successive iterations and not an indication of how close it is to a true mi...

12 years ago | 0

| accepted

Answered
Skull striping without affecting tumor region
The simplest way to segment the tumor in the sample image would be to use region growing algorithm. There are a few implementati...

12 years ago | 0

Answered
Solving an implicit function, fsolve vs. fzero
You can try the following approach: abc=rand(3,1); % A, B, C parameters q=8; % order of the polynomial ...

12 years ago | 1

Answered
does anybody have a matlab code for revised simplex method with box vriables like -2<=x<=10....etc
yep, there is a submission of this sort on FEX: http://www.mathworks.com/matlabcentral/fileexchange/8277-fminsearchbnd-fminse...

12 years ago | 0

| accepted

Answered
weird results with relational operation ==
The expression xchk == X3 is indeed false, however , if you check the value of abs(xchk-X3) you will find it to be le...

12 years ago | 1

| accepted

Answered
The "imregconfig" and " imregister" functions . help
You will not find these functions with your version of MATLAB because they were made available quite recently with the R2012a ve...

12 years ago | 0

| accepted

Answered
triangles generated by isosurface
Hi Sayed, unfortunately there are no built-in Matlab functions that would allow you to regularize your mesh. There is, however,...

12 years ago | 0

| accepted

Answered
Get line properties from it's handle
try this: x=get(lineHandle,'XData'); y=get(lineHandle,'YData'); x and y variables respectively should be the x and y ...

12 years ago | 1

| accepted

Answered
Identify decaying or growing sinusoidal graph
find the peaks, order them according to time and compare their magnitudes. see: http://www.mathworks.com/matlabcentral/fileex...

12 years ago | 0

| accepted

Answered
why fmincon optimizer does not optimize my last variable ?
it seems that your cost function is independent of that last variable

12 years ago | 0

| accepted

Answered
How to smooth an edge. I need you help very urgent
If you have IPT see the documentation for 'bwmorph' function. Amongst other things it allows you to remove spurious details of t...

12 years ago | 0

| accepted

Answered
Minimizing mean square error for a body tracking problem
No pen and paper necessary. Here is code for the function that I already have: function [R,t,s]=SymTformParams(Xref,Xsrc) ...

12 years ago | 0

| accepted

Answered
Minimizing mean square error for a body tracking problem
If point correspondences are known, do the following: 1) solve for translation, by comparing the centroids of the landmark se...

12 years ago | 0

Answered
Clean-up isosurface output
http://www.mathworks.com/matlabcentral/fileexchange/27667-splitfv-split-a-mesh

12 years ago | 1

| accepted

Answered
Shape analysis to distinguish different objects?
see this paper: Mingqiang et al. (2008) "A Survey of Shape Feature Extraction Techniques"

12 years ago | 0

| accepted

Answered
Improve the quality of 3D triangle meshes (surface meshes)
Based on your previous question, I am assuming that you are extracting your mesh from an implicit surface representation. If tha...

12 years ago | 0

| accepted

Answered
Reduce the size of isosurface output
doc reducepatch

12 years ago | 0

| accepted

Answered
Interpolation, sigmoid curve
you mean extrapolate into the future, not interpolate ... If you have Optimization Toolbox, you can try fitting the generalized ...

12 years ago | 0

| accepted

Answered
3D Mesh morphing
Before morphing, you first have to establish dense point correspondences between the two surfaces. You can address this problem ...

12 years ago | 4

| accepted

Answered
How to crop out the object from the image and then store the objects in the image?
Assuming you have Image Processing Toolbox you can try the code below. You can also easily modify it to suit your needs. % ...

12 years ago | 3

| accepted

Answered
FFT vs Time Plot
What you want is called short time Fourier transform. Here is as example: http://www.mathworks.com/matlabcentral/fileexchange/15...

12 years ago | 0

| accepted

Answered
Probability distribution
If you have a univariate data then you can test it for normality using Anderson-Daarling test [1] or Kolmogorv-Smirnov test [2]....

12 years ago | 0

| accepted

Answered
Numerical Jacobian in Matlab
lsqnonlin is not designed for the purpose of evaluating Jacobians. I thought your main concern was that it does not evaluate the...

12 years ago | 0

| accepted

Answered
Numerical Jacobian in Matlab
Actually there is non problem what so ever. The Jacobian of your function is: J=@(x) [2*x(1) 2*x(2);3*x(2).*(x(1).*x(2))....

12 years ago | 0

Load more