Beantwortet
How should I configure the 'Publishing Options' so that I don't get an error when user input is required?
Perhaps you could use an |inputdlg| to ask for user feedback? txt = inputdlg('input');

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
Copy figure losing transparancy
More than likely the renderer is switching away from OpenGL to painters which does not support transparency. You can go into...

mehr als 12 Jahre vor | 0

Beantwortet
How to loop through a folder?
You can use the |dir| command to give you the names and then loop over them. files = dir; directoryNames = {files([files.i...

mehr als 12 Jahre vor | 0

Beantwortet
Fail Reasons exportable in the UnitTest-Framework?
Now with R2014a, you can use custom test runner plugins such as the Failure Diagnostics Plugin and the Output Stream or To File ...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
Memory Usage and Speed
Are you actually reading in the files using dicomread()? If you are, perhaps the quicker |dicominfo()| could provide what you'r...

mehr als 12 Jahre vor | 0

Beantwortet
adjacent boxplots on same figure
hb = boxplot(1:10,[zeros(1,5) ones(1,5)], 'colorgroup', [0 1], 'colors', 'rb', 'orientation', 'horizontal'); Get each graph...

mehr als 12 Jahre vor | 0

Beantwortet
set graphics object ydata which is a cell
If you look at _h_ it's actually a 1x2 vector of handles. Thus you're getting the ydata from two separate handles and you'll ne...

mehr als 12 Jahre vor | 2

| akzeptiert

Beantwortet
trouble using regionprops and imdistline
Use |bwmorph| with the _'endpoints'_ option to identify the end points and then use the distance formula (i.e. |hypot()|) to cal...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
cannot call or index into a temporary array
MATLAB does not support cascaded indexing. What are you trying to do? What is the structure of _c_, I.e. the ouput from ...

mehr als 12 Jahre vor | 0

Beantwortet
How can I easily get for each day in 2013 the type of day? ( Weekday, Saturday, Sunday)
day = weekday(datenum('01/01/2013'):datenum('12/31/2013'))

mehr als 12 Jahre vor | 0

Beantwortet
How to select the highest number of branches/branch points?
One way to approach this would be to: # First, remove the branchpoints from the skeleton image (dilate them first to make su...

mehr als 12 Jahre vor | 0

Beantwortet
Log axis on imagesc
I think what you want is to use surf with x and y set to your values. surf(1:100,1:100,magic(100)); set(gca,'XScale','log'...

mehr als 12 Jahre vor | 0

Beantwortet
convert cell to double
In the import tool, change the selection to double, then reimport. This is the best part of the import tool, you can rapidly ...

mehr als 12 Jahre vor | 0

Beantwortet
Force timeout for save()?
Try to open a file on the drive first, if you can't open it, then the drive is unavailable. Overall, Walter's approach is bette...

mehr als 12 Jahre vor | 0

Beantwortet
Importing a text file and then using "counting" approach
How about using <http://www.mathworks.com/help/releases/R2014a/matlab/ref/histc.html |histc()|> or |hist()|? These will count f...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
Shut down Matlab and open new Matlab instance
system('matlab &');exit

mehr als 12 Jahre vor | 1

Beantwortet
How to efficiently pass large constant matrix in parfor
One possibility: <http://www.mathworks.com/matlabcentral/fileexchange/31972-worker-object-wrapper> Though this will requir...

mehr als 12 Jahre vor | 1

Beantwortet
How do I create a report (.doc or .txt or PDF) with Matlab WITHOUT the report generator?
Publish it! doc publish

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
Two identical commands take different times to run?
Good questions! # K11 and K12 are just references to K, they have not been copied in memory. When you change it, the referen...

mehr als 12 Jahre vor | 1

| akzeptiert

Beantwortet
How to average certain elements in a matrix using for loop.
doc accumarray And an example: %% sample data n = 50; id = randi(5,n,1); x = rand(n,1); y = rand(n,1); %% eng...

mehr als 12 Jahre vor | 0

Beantwortet
Problem involving drug delivery and ODE
Have you tried using <http://www.mathworks.com/products/simbiology/ SimBiology>? Perhaps this <http://www.mathworks.com/video...

mehr als 12 Jahre vor | 2

Beantwortet
Having an error of function handler while using GA
Run the following: dbstop if error This will stop when the error is thrown so you can inspect what's going on and which ...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
xlsread for many distinct columns that aren't side-by-side in the SS
Use an automation server to read in only the chunks you need: <http://www.mathworks.com/help/releases/R2013b/matlab/matlab_ex...

mehr als 12 Jahre vor | 0

Beantwortet
How to make a subplot into a new standalone figure?
You'll want to use <http://www.mathworks.com/help/releases/R2013b/matlab/ref/copyobj.html |copyobj|>. This <http://www.mathwo...

mehr als 12 Jahre vor | 2

| akzeptiert

Beantwortet
how to use index referencing ?
A = [1 -2 1 0.7 3 1 -0.1 -3 2 -0.2 0 0 1 1 ...

mehr als 12 Jahre vor | 0

Beantwortet
editor functionality: check that variable name isn't already a MATLAB function name or keyword?
This thread discusses it: <http://www.mathworks.com/matlabcentral/answers/90268-shadowing-built-in-functions>

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
What's on your personal MATLAB to-do list?
One such thing on my list is a "graphics component" (e.g. uicontrol, uipushtool, axes etc.) state tool. It would allow you to...

mehr als 12 Jahre vor | 3

Beantwortet
Masking 3 dead pixels on a camera
I would recommend |inpaint_nans| for this: <http://www.mathworks.com/matlabcentral/fileexchange/4551-inpaintnans>

mehr als 12 Jahre vor | 0

Beantwortet
Convert char fields of structure into a cell array
You could also use <http://www.mathworks.com/help/releases/R2013b/matlab/matlab_prog/comma-separated-lists.html comma-separted l...

mehr als 12 Jahre vor | 2

| akzeptiert

Beantwortet
Convert a xyz surface into a 3D array?
*Edit per clarification* Use this utility from the File Exchange: <http://www.mathworks.com/matlabcentral/fileexchange/273...

mehr als 12 Jahre vor | 0

| akzeptiert

Mehr laden