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

etwa 11 Jahre vor | 0

Beantwortet
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/...

etwa 11 Jahre vor | 0

Gelöst


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

etwa 11 Jahre vor

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 2

| akzeptiert

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 1

| akzeptiert

Beantwortet
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]; ...

etwa 11 Jahre vor | 1

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 1

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

| akzeptiert

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 1

| akzeptiert

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

Beantwortet
find rows with specific value
doc ismember doc intersect

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 1

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

etwa 11 Jahre vor | 0

| akzeptiert

Mehr laden