Answered
Count black and white pixels on a image
tinypic makes this possible though: Nuno's image, no porn/ads/taggings/things you may (or may not) be interested in etc. <<ht...

15 years ago | 0

Answered
Matlab programs run faster on laptop than on dual quad
Same thing happens to me! I use an 18GB RAM, 3.0GHz quad-core desktop that's slower than my 2.5GHz 4GB RAM dual core laptop;...

15 years ago | 0

Answered
bucketing values
Like this? A = [0.8756 0.1185 0.0059]; %percentiles (must sum to 1 R = rand(1,1000); %random data B = [11 17 19]; %sample dat...

15 years ago | 0

Answered
File Merge Speed Improvement
I think your |for|-loop is buggy and probably not doing what you want (guess) abs(data(n,1) - n) Will be a scalar valu...

15 years ago | 0

Answered
cell array expansion
One reason: For a function that takes |varargin| you can feed it all contents of a cell as a separate input. x = {1,2,3,...

15 years ago | 1

Answered
Can I speed up this text file parsing code?
Preallocate, preallocate, preallocate!!!!!!! (just like m-lint (the orange squiggly line) is telling you) v = 1:5:length(rawd...

15 years ago | 1

Answered
Coordinates of a square array with a loop
I assume you're looking for |meshgrid|, though your question isn't clear. [xx yy] = meshgrid(0:6); [xx(:) yy(:)]

15 years ago | 0

| accepted

Answered
Calculating cross-point within a set of x & y data
[mxy idx] = max(y); %max and index y98 = 0.98*mxy; %value of y crossing pt1 = interp1(y(1:idx),x(1:idx),y98); %interp low...

15 years ago | 1

| accepted

Answered
Retrieving strings from struct variable
stringvector should be a cell stringvector = cell(16,1) for ii = 1:16 stringvector{ii} = structVar(ii).stringField end ...

15 years ago | 1

| accepted

Answered
Removing Multiples of a number from a Matrix
m = n; m(~mod(m,2)&m~=2) = [] remove parts that are divisible by two (~mod(m,2)) and not two, m~=2

15 years ago | 1

| accepted

Answered
Matlab surface isolines
*EDIT per comments:* Of course; set the facealpha property of the mesh to a small number (1 is opaque, 0 is transparent). This...

15 years ago | 0

Answered
wiener filter
showdemo ipexwiener

15 years ago | 0

| accepted

Answered
Double X-axis code
This could be done using |annotation| and |text| though it won't be fun doc annotate doc text

15 years ago | 0

Answered
Detecting complex circular object in 2D images!!!!!!!
I would recommend trying to better segment the image before applying any circle detection algorithms. Perhaps a standard devi...

15 years ago | 0

Answered
How to estimate the standard deviation of canny edge detection
Do you want something like |stdfilt|? doc stdfilt

15 years ago | 0

Answered
How to use freeman code using matlab 7.0
This seems to be well liked: <http://www.mathworks.com/matlabcentral/fileexchange/29518-freeman-chain-code FEX:freeman_code>

15 years ago | 0

| accepted

Answered
How to get Areas of Specified Objects in an Image?
*Edit Per Comments* %% Answers 7/21 I = imread('coins.png'); Ibw = I>100; %% Edited Again Ibw = bwareaopen(Ibw,20...

15 years ago | 2

| accepted

Answered
How to create a binary matrix
To get logical binary values either use: x = logical(x) or any conditional operator e.g. x = x>7 x = x==11;

15 years ago | 0

Answered
How to reconstruct a sound with data in MATLAB?
like doc sound %? be more specific what you mean by "reconstruct".

15 years ago | 0

Answered
For loop, exceeded dimension error.
Simply run the loop backwards so row 4 doesn't become row 3 when row 3 is deleted. e.g: for jj = N:-1:i3 %delete stuff ...

15 years ago | 1

| accepted

Answered
problem in assigning elements
Define _stats_ as a cell array stats = cell(n,1); for ii = 1:n %do stuff stats{ii} = regionprops(stuff) end

15 years ago | 1

Answered
Cancercell image background noise elimination using matlab
showdemo ipexcell

15 years ago | 0

Answered
How to determine if data are significantly different from each other
Assuming the order doesn't matter, you could use a statistical Z-score.

15 years ago | 0

Answered
Running Multiple Instances Of The Same GUI
Is the gui in guide? gui_Singleton = 1; %turn me off to allow multiple instance! gui_State = struct('gui_Name', mfilen...

15 years ago | 2

| accepted

Answered
Size problems with interp2
The fix [x y] = meshgrid(y,x); %create vector arrays [XI YI] = meshgrid(YI,XI); %create vector arrays You have x and...

15 years ago | 1

| accepted

Answered
Combining variables
<http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F FAQ4.6> Don't do it! but if you...

15 years ago | 1

| accepted

Answered
Using the Insturment control box to control Tektronix Scope
Don't know for sure, but judging by these, I would guess so: <http://www.mathworks.com/matlabcentral/fileexchange/?term=tektr...

15 years ago | 0

| accepted

Load more