Answered
creating a unique variable for the outputs of a for loop?
Since it is a function, the workspace is cleared when it's done running and only the output arguments returned. function [fin...

15 years ago | 0

Answered
deriche edge detector
Never heard of Canny-Deriche, but there's a Canny filter in: doc edge

15 years ago | 1

Answered
The Matlab reflectivity tool
They are probably in the Mapping Toolbox <http://www.mathworks.com/products/mapping/> (At least those were the only results fo...

15 years ago | 0

Answered
Why do you come to "MATLAB Answers"?
['a':'c' 'f' 'i'] I've learned how to program in MATLAB pretty much exclusively from CSSM and Answers. The quick fun chall...

15 years ago | 2

Answered
problem with for loop
w=0:60*(10^6/4096)+1:60*10^6 ; % [Hz] zl=50 ; % [ohm] zs=50 ...

15 years ago | 1

Answered
Splitting up values from variables
Displacement(1) ? Seems too simple to answer your question.

15 years ago | 1

Answered
How to plot with initially undefined number of lines in a .m file
doc varargin doc nargin Use one of the above to determine how many inputs there are, then use a for-loop to create that ...

15 years ago | 0

Answered
Can I use symsum function (summation) for an image matrix?
An image matrix is just numbers and variables...

15 years ago | 0

| accepted

Answered
Thresholds in ODE solvers
Your function is returning dn. x isn't passed back so the last line doesn't do anything...

15 years ago | 1

Answered
How to align two images together automatically: Round 2
<http://www.mathworks.com/matlabcentral/fileexchange/18401-efficient-subpixel-image-registration-by-cross-correlation> You coul...

15 years ago | 1

Answered
function
No. The command add may produce 'd' in its own function workspace, but when it is retrieved it is called 'b' because that's the...

15 years ago | 1

| accepted

Answered
polarized and non polarized images
[EDIT: 20110518 18:15 CDT - clarify - WDR] <http://www.google.com/search?q=what+information+from+polarized+illumination+with+an...

15 years ago | 0

Answered
M-function in a M-script
That was covered in depth on CSSM. <http://www.mathworks.com/matlabcentral/newsreader/view_thread/298837>

15 years ago | 0

| accepted

Answered
Images to stacks
I = zeros(nRows,nCols,nTifImages,'uint8'); %preallocate block for ii = 1:nTiffImages %loop over image I(:,:,ii) = imrea...

15 years ago | 0

| accepted

Answered
How do I cut individual letters in the image bar code?
Use |bwconncomp| to group objects and then use |regionprops| with the 'image' option. Each image in the output from regionprops...

15 years ago | 0

Answered
Error with image analysis
i is apparently a 2d image. what is j (size(i))? d = I > 160; %don't name your variables i,j as they are the sqrt(-1)

15 years ago | 1

Answered
matrix plotting
scatter(z(1,:),z(2,:)) or scatter(z(1:2:end),z(2:2:end)) %Sorry misread your inputs

15 years ago | 0

| accepted

Answered
Vector dependance
No. However, if x,y are handles, toying with z could change the object being handled.

15 years ago | 0

| accepted

Answered
[DEPRECATED] What frustrates you about MATLAB?
plot(1:10,'b-',3*(1:10),'r') Throws an error. MATLAB, you know how to plot against indices when there is only one vector, ...

15 years ago | 1

Answered
how to make arrows
doc quiver

15 years ago | 0

Answered
Using unique.m function on NaNs
No. It's supposed to be a. By definition nans are not equal to themselves so they're not equal in rows either. isequal(n...

15 years ago | 1

| accepted

Answered
trouble using im2bw for image thresholding
level = graythresh(imagedata2); BWS = im2bw(imagedata2,level); If this doesn't work what are class is imagedata2? class(...

15 years ago | 1

Answered
How to align images together automatically: Round 1
Once you know the displacement vector, use my |imtranslate| function <http://www.mathworks.com/matlabcentral/fileexchange/272...

15 years ago | 1

| accepted

Answered
workspace & GUI
That's because it's calling it in the workspace of the callback function, not the base work space. This is what you want: ev...

15 years ago | 0

| accepted

Answered
accessing surrounding elements in an array
%Boundaries included A2 = conv2(double(A),ones(3),'same')/9; idx = A > 200; %simulating you're threshold A(idx) = A2(idx); ...

15 years ago | 1

| accepted

Answered
how to convert an image to topography image?
To calculate the variance, take the square of the output of |stdfilt| doc stdfilt

15 years ago | 0

Answered
calculating the average in a matrix
I = your_image; Ismoothed = cast(conv2(double(I),ones(3)/9,'valid'),class(I)); A windowing average is just a convolution with...

15 years ago | 0

Answered
extract matrix from for loop
m2 = repmat(m,[1 10]); or m2 = repmat(m,[10 1]);

15 years ago | 0

Answered
Logical Indexing for a slice of a 3D-Matrix
Obligatory timings :) MyMat2store = rand(1000,1000,3); MyMat1 = rand(1000)*10; t1 = 0; t2 = 0; t3 = 0; for ii = 1:30; My...

15 years ago | 0

Answered
School Project
doc axis Specifically axis([0 50 0 50])

15 years ago | 0

| accepted

Load more