Answered
Refresh GUI content without opening new GUI window
|drawnow| forces a flush of the event queue and will drive all of the updates to a figure that have happened (i.e. update to cur...

11 years ago | 0

Answered
Best Practice for Testing for Appropriate Numerical Input
If you're willing to programmatically add a new edit box, you could use my <http://www.mathworks.com/matlabcentral/fileexchange/...

11 years ago | 0

Solved


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

11 years ago

Answered
Is the MATLAB Instrument Control Toolbox compatible with the Total Phase Promira Serial Platform?
As long as it supports the I2C standard, then yes.

11 years ago | 0

Answered
How to pass extra parameters to lsqnonlin function?
Easiest way is with an anonymous function: <http://www.mathworks.com/help/releases/R2015a/optim/ug/passing-extra-parameters.h...

11 years ago | 2

| accepted

Answered
How to slice 3D object
What do you mean by "slice"? doc slice ? sz = size(x) xs = x(1:ceil(sz(1)/2),:,:); ?

11 years ago | 0

Answered
How do I get Matlab to return a matrix with all the file names in a folder?
This should work: F = dir(uigetdir('*.m')) names = {F(:).name} _names_ will be a cell array with all file names with th...

11 years ago | 1

| accepted

Answered
how to make a function that return smallest unsigned integer class of a matrix
How about this? classes = {'uint8','uint16','uint32','uint64'}; lims = [0 cellfun(@(x)double(intmax(x)),classes), inf]; ...

11 years ago | 1

Answered
parfor warning and analysis of switch statement
It doesn't error does it? It looks like the warning is a feature of the switch statement letting you know what you can expect a...

11 years ago | 0

Answered
Replace Mathworks icon with my own in the figure
When you build an exe with MATLAB Compiler, you can specify your own icon for the upper left corner: <</matlabcentral/answers...

11 years ago | 0

Answered
How to add a subfigure on top of an other figure?
Add another axes with the axes() command. See the example here: <http://www.mathworks.com/help/releases/R2015a/matlab/ref/axe...

11 years ago | 0

Answered
Interrupting a for loop with a GUI Pushbutton
http://www.mathworks.com/matlabcentral/answers/24515-updating-a-string-inside-a-callback

11 years ago | 0

Answered
How to set line style and color of a line?
line([0,10],[5,5],'LineStyle',':','Color','r') And for more info doc line

11 years ago | 1

Answered
Can I get length in z dimension from bwlabeln?
pixlist = regionprops(L,'PixelList') Now look at pixlist's third column, i.e. z. If |numel(unique(z))>1| there are multipl...

11 years ago | 0

Answered
Error in the total number of file count
which dir which uigetdir You might have shadowed "dir" or "uigetdir". Clear/rename that variable/function and try again...

11 years ago | 0

| accepted

Answered
Looking for a way to compile a function for use natively in MATLAB
|pcode| is really the only thing that does exactly what you want. There are some utilities on the File Exchange for batching pc...

11 years ago | 0

Answered
Udefined function createpde.m
|createpde| is new in R2015a in the PDE Toolbox. Thus, if you are not on the current release with this toolbox installed it won...

11 years ago | 1

| accepted

Answered
Is there a compact way to check multiple variables against the same conditions?
Frankly, I like the way you have it. It's clear to read: if all([x(:); y(:); z(:)]) %etc end would also work bu...

11 years ago | 0

Answered
How to save a 3D convex hull without displaying it
Use |poly2mask| to build the convex image from the points list and then write it out.

11 years ago | 0

Answered
help to assign correct image path to a variable
I think it needs to be _'.\'_ at the beginning of the filename to specify relative path. _.\dataset\MICC-F220\dataset\MICC-F2...

11 years ago | 0

Answered
find rows with specific value
doc ismember doc intersect

11 years ago | 0

Answered
A state machine in simulink.
How about just use a MATLAB Function block and paste that code that you have above into it? <http://www.mathworks.com/help/re...

11 years ago | 0

Answered
Is National Instruments USB-6351 supported by the DAQ Toolbox?
# Yes. <http://www.mathworks.com/hardware-support/nidaqmx.html> # Yes. Just add the channels.

11 years ago | 0

Answered
How to remove a specific script/function from path?
rmpath pathtool But you're best off either renaming your |isdiag()| or putting it into a package to avoid name conflicts.

11 years ago | 0

Answered
Running scripts in parallel on the GPU
Reshape it into a 3d matrix so that each column is one slice, then use <http://www.mathworks.com/help/releases/R2015a/distcomp/p...

11 years ago | 0

Answered
how to determine the neighbours of each node in a square graph ?
I would build this as a binary connectivity matrix. If node 1 is connected to two and three and four is only connected to 2...

11 years ago | 0

Answered
How to curve fit 4D data?
Statistics Toolbox provides |fitnlm| which will fit in N-D for you.

11 years ago | 0

Answered
how I can insert a simple message on a picture ??
If you have the Computer Vision System Toolbox, you can use <http://www.mathworks.com/help/releases/R2015a/vision/ref/inserttext...

11 years ago | 1

Answered
Using imregister for 3D images of different size
The inputs don't need to be the same size but it can help the optimizer if they are.

11 years ago | 0

| accepted

Load more