Answered
Remove columns from a matrix with a loop.
Once you delete a column your matrix is smaller so the last entry (length(dataarray)) no longer exists. The easiest remediation...

15 years ago | 0

| accepted

Answered
Curl function outputting -inf and NaN
Apparently you're dividing a positive number by zero (inf), a negative number by zero (-inf) and zero by zero (nan). What does ...

15 years ago | 0

Answered
research work in mammographic image processing.
It can definitely be done in MATLAB. Is it the best tool? Well that depends on you, your team, your budget, the project, time ...

15 years ago | 0

Answered
save image with drawn shapes on it
doc print

15 years ago | 0

Answered
Patch
So you want to be able to see a smaller polygon inside a bigger one? Use the facealpha and edgealpha properties to make the l...

15 years ago | 0

Answered
fill inside a boundary
M = imfill(BoundaryImage,'holes'); %Assuming boundary is connected. Else use poly2mask I1(M) = I2(M); %Set mask portion of ...

15 years ago | 0

Answered
Periodic Task execution
You would just have to split the image up using a |parfor| loop. When each computation is independent this shouldn't be an issu...

15 years ago | 2

Answered
Kriging
You may wish to look at some of the results for kriging on the FEX. (I've never used any, but a few appear to be well rated) ...

15 years ago | 0

Answered
sym function help
double(Zc) or simplify(Zc) or subs(Zc,w,value) or simple(ZC) just throwing a few things out there for you.

15 years ago | 0

| accepted

Answered
Connecting points in 3D using plot3
That's because {A,B,C} the way you've called it reference the same point! I think you want: A=[1 2 3]; B=[1 2 3]; C=[1 2 3];...

15 years ago | 2

| accepted

Answered
Problems with for loop
To fix this you would need: for ii = 1:137 %don't use i, it's the sqrt(-1) Q(ii*2-1:ii*2) = [q(ii) 0]; end Walter's solut...

15 years ago | 0

Answered
Optimize vector position and values to form another vector.
For the above example and any other permutation defined by it the best case scenario is all four weights to equal zero and the p...

15 years ago | 0

Answered
Transparency
If you look at: doc imwrite PNG and GIF files both support transparency, the doc explains how to set it.

15 years ago | 0

Answered
Showing repeat data points in XY/scatter plot
%Data x = ones(1,12); y = [1 1 2 3 3 3 4 5 6 2 2 2]; %Engine [uxy, jnk, idx] = unique([x.',y.'],'rows'); szscale = hist...

15 years ago | 1

| accepted

Answered
matlabpool RAM occupation
matlabpool close force

15 years ago | 1

Answered
how to use file downloaded from matlab central
Put in in the MATLAB folder in your documents.

15 years ago | 0

| accepted

Answered
Single Precision by Default? ... lots of auxiliary variables to cast
How does it hurt if the other variables are double precision, the lowest precision will be kept. single(magic(3)).*magic(3)...

15 years ago | 0

Answered
Extracting everything from a structure
doc struct2cell ?

15 years ago | 0

Answered
Question is Unknown :)
Define your event to take in the index, e.g: function event(val,idx); %do stuff with val,idx end Then call it with: i...

15 years ago | 1

| accepted

Answered
Is there a smarter way to create a large vector, with repeated numbers in a diminishing quantity?
A one liner: n = 144; v = sort(nonzeros(triu(bsxfun(@times,(2:n+1).',ones(1,n))))); or v = sort(nonzeros(triu(toeplitz(2:...

15 years ago | 0

| accepted

Answered
How do I find the boundaries of a value in a matrix?
[r c] = find(bwperim(I==8));

15 years ago | 0

| accepted

Answered
Bad Pixel Replacement
What about using John's inpaint_nans? <http://www.mathworks.com/matlabcentral/fileexchange/4551-inpaintnans> <http://www.m...

15 years ago | 0

Answered
An actual non-answer from solve
You force k to equal 2*pi; how do you expect it to solve for any other value?

15 years ago | 0

| accepted

Answered
I got a non-answer from solve()
You get an answer! b = solve(eq1,eq2,eq3,A,eta,k) b.A %A b.eta %eta b.k %k

15 years ago | 0

| accepted

Answered
Extracting and using the values of variables in workspace in a loop
How about a = whos; ?

15 years ago | 0

Answered
Help on character segmentation for license plate recognition
You know how wide a character is, I would begin with that knowledge to indiscriminately segment the characters from each other. ...

15 years ago | 0

| accepted

Answered
How to select variable based on numbers in variable name?
<http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F> and <http://matlab.wikia.c...

15 years ago | 1

Answered
comparing two images
isequal(Image1,Image2);

15 years ago | 1

Answered
delete drawn shape from image
H = imellipse(...); delete(H);

15 years ago | 0

Answered
how to design a moving window? which has to move sample by sample in simulink
doc conv Edit for Fangjun: isclose = @(x,y)isequal(size(x),size(y))&&all(abs(x-y)<10^-5) cway = conv(c,ones(1,80),'valid')...

15 years ago | 0

Load more