Respondida
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

alrededor de 13 años hace | 0

| aceptada

Respondida
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....

alrededor de 13 años hace | 0

| aceptada

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

alrededor de 13 años hace | 0

Respondida
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...

alrededor de 13 años hace | 0

| aceptada

Respondida
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...

alrededor de 13 años hace | 0

Respondida
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...

alrededor de 13 años hace | 0

Respondida
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...

alrededor de 13 años hace | 0

Respondida
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? ...

alrededor de 13 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 13 años hace | 0

Respondida
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...

alrededor de 13 años hace | 1

| aceptada

Respondida
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...

más de 13 años hace | 1

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 1

Respondida
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...

más de 13 años hace | 1

| aceptada

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

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 3

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

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

| aceptada

Respondida
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 ...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

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

más de 13 años hace | 1

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

más de 13 años hace | 0

| aceptada

Respondida
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'...

más de 13 años hace | 0

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

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

Respondida
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 ...

más de 13 años hace | 1

| aceptada

Respondida
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...

más de 13 años hace | 0

| aceptada

Respondida
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...

más de 13 años hace | 0

| aceptada

Cargar más