Answered
creating an image using a matrix
<http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F FAQ6.9> Or: r = 11; %radius cx = 25; %xcenter cy = 25; sz = 5...

14 years ago | 1

Answered
Still have .m file, but lost all UI elements in GUIDE
To test your invisibility theory: h = findall(gcf,'visible','off') while the GUI is the current figure. Hopefully, fo...

14 years ago | 0

Answered
vectorization
One way: A = magic(100); %sample matrix A(logical(speye(length(A)))) = 0; Also |diag| if you're building a matrix

14 years ago | 1

Answered
Expression (equation)
And to add on to Paulo's example: t=0:0.1:100; % Time vector A=0.1; y = 1-exp(-A*t); % Value of A that you can chang...

14 years ago | 0

Answered
Same matrixes but isequal not true...
<http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F FAQ6.1>

14 years ago | 0

| accepted

Answered
Polyarea for noncontinuous shapes
So you do want the convex hull! That simplifies it a lot. x=[-.24 -.29 -.19 -.31 -.14 -.15 -.34 -.03 -.31 -.01 -.23 -.19 -.1...

14 years ago | 0

Answered
Change how this plot looks
Sure: # doc plotyy # use the axes handles set the limits (doc |axes| (click on axes properties)) # To plot a vertical line, fi...

14 years ago | 1

| accepted

Answered
Image processing: b/w, blob analysis
doc imdilate doc imerode doc bwmorph doc watershed just a few to get you started.

14 years ago | 0

Answered
Data cursor in GUI
Use the _WindowButtonMotionFcn_ option of the figure to get the position of the cursor every time it's moved. If it's in the ra...

14 years ago | 0

Answered
Multiple thresholds in Otsu method
You're lucky: <http://www.mathworks.com/matlabcentral/fileexchange/26532-image-segmentation-using-otsu-thresholding FEX:Damie...

14 years ago | 0

| accepted

Answered
Plot and compare probability distribution (3 Dimension) in matlab
figure; subplot(121); mesh(A) subplot(122); mesh(B) ?

14 years ago | 0

Answered
How simulate ink distribution in 3D.
Like this? <http://www.youtube.com/watch?v=p08_KlTKP50 Youtube:Laminar_Flow:Awesome!>

14 years ago | 0

| accepted

Answered
how to implement your algorithm with a gui
<http://www.mathworks.com/matlabcentral/fileexchange/24224-magic-matlab-generic-imaging-component FEX:MAGIC> I'd recommend brow...

14 years ago | 0

Answered
faster "log10" command
On my system: A = magic(10000); %Don't do this! tic,log10(A);toc _Elapsed time is 1.388229 seconds._ 1.39 seconds to...

14 years ago | 1

Answered
Efficiency help 2
for s if abs (maxtab2{q}(r) - replacewith(s)) ==1 maxtab2{q}(r) = replacewith(s); end end I'm pret...

14 years ago | 0

| accepted

Answered
Efficiency help
you can replace the while loop with counter2 = find(mymatrix(1,:)==peak_loc2{1}(m),1,'first')

14 years ago | 0

| accepted

Answered
Saving 3D image
Does it need to be accessible from another program? doc save I would just use |save| and save it as a matfile. If it ha...

14 years ago | 0

Answered
Show loop calculations and iteration details in a matrix
Looks like |accumarray| or |grpstats| would be your friend. Perhaps you could post the whole code and a (small) sample matrix...

14 years ago | 0

Answered
How to pick a value according to its probability
f = X(find(rand<cumsum(P),1,'first'))

14 years ago | 2

| accepted

Answered
08/12/2011 - I need more answers about: "Attempt to reference field of non-structure array" error
how about using: dbstop if error to stop at the line that returns the error?

14 years ago | 0

Answered
Alphabetical random permutation
So: alphabet = 'A':'Z'; alphabet = alphabet(randperm(numel(alphabet)))

14 years ago | 0

Answered
How to create gui objects based on user input??(dynamically)
How about using a |uitable| instead? doc uitable Else use a |for|-loop to build n edit boxes where n is constrained to b...

14 years ago | 1

| accepted

Answered
Using string as data for plotting
If you only want the labels replicated once, it appears you're going to have issues since you have nine ticks: From the (doc ax...

14 years ago | 0

Answered
Extract all red pixels from image to binary image
X = uint8(rand(100,100,3)>.5)*255; %sample image with some red red = all(bsxfun(@eq,X,reshape([255 0 0],[1 1 3])),3); %logical...

14 years ago | 0

Answered
writing an image into folder
doc print *More to Clarify Comments* H = figure; for ii = 321:326 subplot(ii) imagesc(magic(ceil(rand*10))); %rand...

14 years ago | 0

Answered
problem with dlmwrite
Don't convert it to a cell array with the {}.

14 years ago | 0

Answered
Stats functions not working using university license on personal machine
Maybe try: addpath(genpath([matlabroot '\toolbox\stats\'])) savepath

14 years ago | 0

| accepted

Answered
I want to know if we can implement histogram equalization without the histeq function?
<http://www.mathworks.com/matlabcentral/fileexchange/28972-custom-shaped-histogram FEX:ImageAnalyst's:Demo> Probably worth a ...

14 years ago | 0

Answered
How to set a particular font in a Edit Text Area
Perhaps |uisetfont|? doc uisetfont Though if the user has enough calming vodka, do you even need _'*'s_?

14 years ago | 0

Answered
Can't get user INPUT function to work!!!
You overwrite the function |input| with the variable _input_ as the output from your call to |wavread| on line 6. Thus it sees i...

14 years ago | 1

| accepted

Load more