Answered
Plot symbolic polynomial
doc ezplot

15 years ago | 0

Answered
For loop help, Matrix manipulation
if (all(all(removed(ii-1:ii+1,jj-1:jj+1)))>(149)) %added all(all(..P) if ((174)>(mean(r)) && mean(r) >=(150)); %two cond...

15 years ago | 0

Answered
plotting on multi figures
It should be opening a new figure each time you call it because of the 2nd line: figure; ? So just call it multiple t...

15 years ago | 0

| accepted

Answered
Logic test has me stumped
The daily floating point stump: <http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3...

15 years ago | 0

| accepted

Answered
save gui figure by name
saveas(gcf,isim{1},'fig'); %extract string from cell

15 years ago | 1

| accepted

Answered
Solving a system of linear equations question.
[1 1 2;3 -1 1; 1 3 4]\[-2;6;4]

15 years ago | 0

| accepted

Answered
Changing a string variable on each iteration of a for loop for saving
<http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F>

15 years ago | 0

| accepted

Answered
trying to understand one line at the program
You're concatenating the variable q column-wise with zeros. Break it down: q = 42; a = 1; w = 10; b = 3; q = [q zeros(1,a*w-...

15 years ago | 0

Answered
Quad-core Processor
An FYI: Contrary to what you're thinking a 300K matrix really isn't that big for modern day machines. It takes about two seconds...

15 years ago | 0

Answered
Mouse control in GUI and contrast button access
# Scroll Wheel: no idea. # The imtool contrast is basically just a histogram with adjustable upper and lower bounds. I think I...

15 years ago | 0

Answered
Need to convert data from two sensors to the same sampling rate
Perhaps |interp1| to interpolate to the sampling rate you desire.

15 years ago | 0

Answered
Matrix manipulation syntax help
You could do this with your for-loop like this: n = 0; for ii = 2:2047 for jj = 2:2047 if(all(all(white(ii-1:ii...

15 years ago | 0

| accepted

Answered
Matrix manipulation syntax help
This will probably frustrate you, but here's a one-liner to do exactly what you want! n = sum(sum(conv2(double(white),ones(3)...

15 years ago | 0

Answered
Using AND Operator in “if” statements
As an addendum to Andrew's thorough and good solution, you can check the sizes directly: if(isequal(size([1 2 3]),size([4 5 6...

15 years ago | 7

Answered
How to remove shadow from LED light
The LEDs are much brighter than everything else. I would guess a one shot lower threshold on the blue channel or the rgb2gray i...

15 years ago | 0

| accepted

Answered
Matlab editor doubt - edit running code
I just keep all relevant m-files open in the editor all of the time... For when you don't have one you need open: * open new m...

15 years ago | 0

Answered
ultra sound image processing
imwrite(conv2(double(imread('cameraman.tif')),ones(3)/9,'same'),'cameramanmoooovingaverage.tif')

15 years ago | 0

Answered
Largest connected component(circular)
Ibw = imfill(imread('coins.png')>100,'holes'); %example binary image CC = bwconncomp(Ibw); %connected components Objsz = cellf...

15 years ago | 1

| accepted

Answered
Plotting matrix columns
doc hold To plot multiple thingies figure; hold on for ii = 1:10 plot(matrix(:,ii)) end

15 years ago | 2

Answered
multiply and addition rows of matrices
Basic Singleton eXpansion along the 2nd dimension: f = sum(bsxfun(@times,p,w))

15 years ago | 0

| accepted

Answered
Continuous analog output ao daq
Use a timer function to repeatedly call the analog out trigger function. doc timer

15 years ago | 0

Answered
Export values of huge container.Map object
Invest in a 64 bit system...

15 years ago | 0

Answered
Throws to get yatzy?
Don't overwrite the builtin function mean!!! And don't overwrite the function mean (that you just created) with a variable mean!...

15 years ago | 0

Answered
Matlab Precision
The easiest way is to set a tolerance on some criteria for being equal. E.g. isclose = @(x,y)all(abs(x-y)<(10^-10)); iscl...

15 years ago | 0

Answered
create array
A = rand(3,6624); A = bsxfun(@rdivide,A,sum(A,1)); Also look at Roger's randfixedsum on the FEX.

15 years ago | 0

Answered
plot transperant 3d sphere
One way: Make a binary sphere using the formula for a sphere: <http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F>...

15 years ago | 6

Answered
cat map method
web('http://2.bp.blogspot.com/_xuKCVllHCh4/RtA9fq_lgAI/AAAAAAAADcg/eXU0YxZ9Pg0/s1600-h/map.jpg')

15 years ago | 0

Answered
How to implement this without using for?
Close! Use |bsxfun|: C1 = sum(2/N*bsxfun(@times,win1,cos((1:N)*teta)),2); C2 = sum(2/N*bsxfun(@times,win2,cos((1:N)*teta)),...

15 years ago | 0

| accepted

Answered
question on citing the output message of fzero function.
One thing to test: use |strcmpi| so that it's not case sensitive.

15 years ago | 0

Load more