Answered
Speed up logical operations
Compute the logical conditions only once: SubSysStateeq0 = SubSysState==0; SubSysStateneq0 = ~SubSysStateeq0; SubSysState...

15 years ago | 0

Answered
inquiry ((image processing))
Well I don't know you and I don't know how knowledgeable you are with image processing/Matlab/Calculus etc. Personally I woul...

15 years ago | 1

| accepted

Answered
Clearing everything except variables
And probably faster that save and load S = struct('var1',var1); %etc setappdata(0,'S',S); clear all; S = getappdata(0,'S');...

15 years ago | 2

Answered
TUTORIAL: how to ask a question (on Answers) and get a fast answer
* Don't accept the first answer to come up! If an answer works for you THEN accept it. I.e. Don't accept it and then ask for a...

15 years ago | 8

Answered
image processing from webcam
I would do this with: I = imread('answers425.jpg'); %your_image M = shrinkWrap(I(:,:,1),'objthresh',3000,'biggest'); %shri...

15 years ago | 0

| accepted

Answered
Creating a persistent variable type single
What classes are a & b? Does the error occur on that line?

15 years ago | 0

Answered
plot a 3-d figure (rhombus inside a cricle)
Pseudocode (I don't want to do your whole assignment for you): # Use the formula for a circle to create a logical circle the ...

15 years ago | 0

Answered
Creating Snake Game
Did you see my suggestion in the other thread?

15 years ago | 1

Answered
How to eleiminate the black background and retain the region of interest in my image?
I would do this using my shrinkWrap function: I = imread('answers421.jpg'); %answers421.jpg is your image M = shrinkWrap(rgb2...

15 years ago | 0

| accepted

Answered
mean value of subarrays
Here's a 2-dimensional example that demonstrates the logic and kernels. %sample data A = uint32(repmat(magic(10),[4,1])); A...

15 years ago | 0

Answered
mean value of subarrays
A couple of calls to convn. The first call will determine the number of zeros; the second will calculate the sum of all values ...

15 years ago | 0

| accepted

Answered
Have a function check whether a variable already exists in the base workspace
W = evalin('caller','whos'); %or 'base' doesAexist = ismember('A',[W(:).name]) This won't check if what it is, just that it e...

15 years ago | 2

| accepted

Answered
Projection of a cube
Okay; I've rewritten this with a few pointers and ideas. First off; NEVER use clear all. It does all sorts of bad things. Sec...

15 years ago | 0

| accepted

Answered
Breakpoints unpredictable in R2011a
Are you calling it in cell mode by clicking "Evaluate Cell"?

15 years ago | 0

Answered
using fsolve for real answers
doc real

15 years ago | 0

Answered
matrix, window finding median....
Well what are the steps? First you have to sort: doc sort then you have to extract the middle value xmiddle = x(floor(num...

15 years ago | 0

Answered
matrix, window finding median....
doc blkproc doc blockproc

15 years ago | 0

Answered
index returned array directly
For this specific case: desired = x(find( x>5,2,'first')) For the more general case (i.e. not FIND) <http://www.mathworks.c...

15 years ago | 0

Answered
surface plot
doc scatter3

15 years ago | 0

Answered
how to get boundary details of particular object in an image
The edge image? doc edge doc bwperim doc bwboundaries Or the BoundingBox output from regionprops doc regionprops

15 years ago | 0

| accepted

Answered
loops in matlab
<http://www.bkcareers.com/ This should help you>

15 years ago | 0

Answered
how to take the exact coordinates of non zero values of a matrix
n_z = find(~o); [x1,y1] = ind2sub(size(o),n_z)

15 years ago | 0

Answered
image denoising
Amount of noise.

15 years ago | 0

Answered
Image Processing Edge Detection: Remove unwanted edges
D = bwdist(canny_edge_detection); % Distance xform M = full_edge_detection_image&(D<5); % Edges in the full edge image and ...

15 years ago | 0

Answered
Image Processing Edge Detection: Remove unwanted edges
Yes. doc bwdist on a logical image will return the distances to the edge. Then you can use a threshold (e.g D <=5) to ...

15 years ago | 0

Answered
Do you suffer from keyboard latency in this forum?
No issues, Jan. Mac OSX running Firefox in USA (though some argue that we're actually part of Canada ;-) ).

15 years ago | 1

Answered
Irregular polygon morphology
As you have alluded to, the widths are easy once you have the maximum line. That problem is harder. You might want to look int...

15 years ago | 0

Answered
Sum and average even numbers
Okay, I wrote it. Can I have a beer now?

15 years ago | 0

Answered
Millisecond accuracy
Could you just pass the external device a vector of values to execute over a longer period of time? I did this with a Nidaq A...

15 years ago | 0

Answered
code for normalized cross-correlation in matlab
doc normxcorr2

15 years ago | 0

Load more