Answered
How can I get someone to input a function in a GUI and then work with that function?
Use |str2func| to take their string and turn it into an anonymous function. doc str2func

13 years ago | 0

| accepted

Answered
Error with using createMask
That worked fine for me. What line is the error on? More than likely you have some function shadowing one of the builtins....

13 years ago | 0

| accepted

Answered
cell counting Matlab code?
CC = bwconncomp(BWImage) CC.NumObjects Where BWImage is the black and white image with each cell white.

13 years ago | 0

Answered
Recolor an image tile-wise with average colors of these certain tiles
Use |blockproc| to handle the block processing doc blockproc Then write a function which does the average ignoring zeros...

13 years ago | 0

| accepted

Answered
find the maximum of a function when wariables, when matrixes are also involed function.
I would recommend using |fminsearch()| or |patternsearch()|. doc fminsearch doc patternsearch %Global Optimization Toolbox...

13 years ago | 0

Answered
Group Identical Values in Matrix While Maintaining Original Indicies
Hi Nathan, Here is the general workflow you will want to use: * Use |datenum()| to convert the dates to serial date number...

13 years ago | 0

Answered
how to set Matlab path on windows 7 (with multiple user accounts)?
Hi Tim, This is the purpose of |userpath()|. doc userpath Using the user path allows each user to have their own path...

13 years ago | 0

Answered
Access data using genvarname
How about just using dynamic fieldnames? a.someString = pi fn = fieldnames(a); a.(fn{1}) What are you trying to do? ...

13 years ago | 0

| accepted

Answered
does 2011a support arduino mega 2560 package?
It's certainly not as straightforward as it is now. If your company/university has SMS you can upgrade to a R2013a which has ...

13 years ago | 0

Answered
How to hide the units label on an axis
How are you generating the figure? Would the following take care of it? ylabel('Phase') *More* per clarification. Th...

13 years ago | 1

| accepted

Answered
Determine the intersection Point of the two Diagonals in a quadrilateral
Don't try and reinvent the wheel: <http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=line+interse...

13 years ago | 1

Answered
about mouse button click
I did that in my <http://www.mathworks.com/matlabcentral/fileexchange/30214-imcensor/content/imcensor.m |imcensor()|> function. ...

13 years ago | 0

| accepted

Answered
Point contained in the convex hull of a quadrilateral?
<http://www.mathworks.com/matlabcentral/fileexchange/10226-inhull FEX:John's:INHULL>

13 years ago | 1

Answered
Save jpg Files Under Plot Title Name
doc saveas %or print doc get doc sprintf Gte the string from the title of the axes: For example: figure;axes;pl...

13 years ago | 1

| accepted

Answered
how to get plus and minus sign element of matrix at the same time?
[xx yy zz] = meshgrid(-1:1); [xx(:) yy(:) zz(:)] ?

13 years ago | 0

Answered
Breakpoints in Run Section
Nope. When you "Run Section" what's essentially happening is: eval(Section_Contents) Thus there is no way to have bre...

13 years ago | 3

Answered
Read only some lines of a .txt file
Use |textscan|. Throw away the lines you don't care about.

13 years ago | 0

Answered
Is there a way to make a font size change persist between opening/closing the doc window in 2013a?
On my system Win7x64 running 13a, the contents tab zooms along with the regular window. As for maintaining persistency across o...

13 years ago | 0

| accepted

Answered
tic toc command in MATLAB GUI
t = tic; set(uicontrol('style','text'),'String',toc(t)); Use |set| to set the _'String'_ property of the textbox you care ...

13 years ago | 0

Answered
how to find indices on a boundary?
You could use |poly2mask()| to create a mask of your polygon and then use |bwboundaries| or |bwtraceboundaries()| to draw the ed...

13 years ago | 0

Answered
M file search another
Sounds like you need turn your scripts into functions. Here is some documentation on writing functions. <http://www.mathwork...

13 years ago | 1

Answered
how to enlarge the font size in matlab R2013a help
*ctrl + +*

13 years ago | 0

| accepted

Answered
Importing a foler of CSV files into matlab
If they all have that naming scheme how about using a for loop: for ii = 1:10 fn = strcat('E:\group',num2str(ii,'%02i'...

13 years ago | 0

Answered
How to make a program to check if a number is a prime?
doc isprime

13 years ago | 0

Answered
How to a partition a data set of days into weekdays and weekends
Sounds like you want the function |weekday()| doc weekday <http://www.mathworks.com/help/releases/R2013a/matlab/ref/week...

13 years ago | 0

Answered
Create an anonymous function after Symbolic differentiation
Almost there! gfun = matlabFunction(g) g(2)

13 years ago | 0

| accepted

Answered
How to calculate the Euclidean distance between two fingerprint images?
doc bwdist doc hypot

13 years ago | 0

Answered
Summation with (Dependent summation)
This line will slow it down a lot: YY1 = [YY1 Y1]; It resizes YY! on each iteration. Instead, rpeallocate YY1 and then ...

13 years ago | 1

| accepted

Answered
Optimizing a distance calculation for elements within a matrix
Have you considered using the distance transform in the Image Processing Toolbox? doc bwdist This is highly optimized an...

13 years ago | 0

| accepted

Answered
Average every n*n elements in a two dimensional matrix
If you have the Image Processing Toolbox, you can use |blockproc| blockproc(magic(100),[10 10],@(bs)sum(bs.data(:))) And...

13 years ago | 0

| accepted

Load more