Answered
Newbie Question Propogation of Effors
This isn't really related to MATLAB, but here goes. All image analysis has *A LOT* of error in digitization. The rest of the e...

15 years ago | 1

| accepted

Answered
minimum distance between the edges of two closed shapes
The distance transform and some indexing will do that for you pretty easily. doc bwdist Post the image for more specific...

15 years ago | 0

Answered
How to label 2nd y-axis
H = plotyy(1:10,1:10,1:10,rand(1,10)); ylabel(H(1),'ylabel 1'); ylabel(H(2),'ylabel 2');

15 years ago | 1

| accepted

Answered
no repetition in the result of a roulette wheel selection function
doc randperm maybe?

15 years ago | 0

| accepted

Answered
How can I divide an interval in intervals with the same length?
Here's an example of what might lead you to your end goal: A = 1:64; %vector B = mean(reshape(A,8,8),1); %mean of interva...

15 years ago | 0

| accepted

Answered
Randomly crashing using the daq.ni.NIDAQmx Matlab class
Is the DAQ system plugged in and working BEFORE you start MATLAB? If it is, is it unplugged at all during the MATLAB session? ...

15 years ago | 0

Answered
Curve fitting using a equation that involves a integral that isnt possible to solve analytically?
dbstop if error then inspect the variables being fed into your function. A good place to start at least.

15 years ago | 0

| accepted

Answered
Convert A String Into a MATLAB Variable Name
Don't do it! What if the variable name is 'size' or 'sum' or something useful and you overwrite a needed builtin function? ...

15 years ago | 1

Answered
How to read a .csv file with text and numbers? How to create a for loop to do the same function for 1000 times?
Have a look at doc importdata and <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F FAQ4.12>...

15 years ago | 2

Answered
Voigt Function
doc conv ? Seems too straightforward.

15 years ago | 0

Answered
Panning plots over an image
Use |slice| to plot it: I = imread('cameraman.tif'); %sample image H = slice(double(repmat(I,[1 1 2])),[],[],1); %slice it se...

15 years ago | 0

Answered
Retrieve an object's name
whos ? x = whos; idx = cellfun(@(x)strcmp(x,'double'),{x(:).class}); %change 'double' to your class x(idx).name

15 years ago | 0

| accepted

Answered
Inverse of a Column Matrix
The inverse of a row/col vector or a non-square matrix isn't defined. Do you perhaps want (mx1)*(1xm) to get a square matrix? ...

15 years ago | 0

Answered
label2rgb problem: 4D to avi cdata
I'm able to get an RGB movie of a labeled rgb image volume using this: movie2avi(immovie(V),'Test1'); %to write the movie (...

15 years ago | 1

| accepted

Answered
Merge a matrix of VALUE: DOUBLE and VALUE: CELL
Make a new cell that holds both of them: C = {numerical_data,cell_data} or similar

15 years ago | 1

Answered
fitting 1D data to y=x polynomial (cftool)
<http://www.mathworks.com/matlabcentral/answers/9663-how-to-calculate-a-line-of-best-fit-equation-y-mx-b-from-a-simple-x-y-datas...

15 years ago | 0

Answered
lsqcurvefit error when using example
myfun = @(x,xdata) x(1)*exp(x(2)*xdata); % Assume you determined xdata and ydata experimentally xdata = [0.9 1.5 13.8 19.8 2...

15 years ago | 0

| accepted

Answered
Transpose matrix and then predetermine rows
doc reshape; Data = reshape(x, [24,365])'; %reshape and then transpose

15 years ago | 0

| accepted

Answered
Reading workspace variables into function
<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!

15 years ago | 0

| accepted

Answered
corr returns NaN
read the: doc corr and you'll see it's not what you want. Are you looking for : doc corrcoef %?

15 years ago | 4

| accepted

Answered
0.1+0.2-0.3=?
stupid, no; common, yes. <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 | 0

| accepted

Answered
solving two equations with 4 unknowns
*Edited:* Walk before you run: syms x y results = solve('3*x+y=9','x-7*y=-3',x,y) results.x results.y look at doc solve ...

15 years ago | 0

| accepted

Answered
Average of terms
mean(x(1:num)); %where num is the number you want to mean to.

15 years ago | 0

| accepted

Answered
How do I index into a 2D matrix using two equal length R and C vectors?
Or: rho = magic(4); R=[1 2]; C=[ 2 3]; diag(rho(R,C)) runs much faster for smaller R,C but much longer for big ones...

15 years ago | 2

Answered
Fuzzy inference system and Image Processing
I would recommend trying some of the demos in the the fuzzy logic toolbox first. It doesn't appear that they have any image pro...

15 years ago | 0

Answered
removing area
You don't even need regionprops! CC = bwconncomp(I2); idxkeep = cellfun('prodofsize',CC.PixelIdxList)>=100; Ibigstuff = f...

15 years ago | 0

Answered
Calculate radius and diameter (image processing)
look at the |equivdiameter| option in |regionprops| doc regionprops

15 years ago | 0

Answered
How to select odd and even rows from a text file
X = X(1:2:end,:); %keep odd rows X = X(2:2:end,:); %keep even rows

15 years ago | 2

| accepted

Answered
Issues using PARFOR with large object array (slow execution time)
Parallelization is slower when the operation is fast and a lot of memory is necessary. There's major overhead in passing it off...

15 years ago | 1

Load more