Answered
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');

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 2

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 0

Answered
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'))

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 1

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

12 years ago | 1

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

12 years ago | 0

| accepted

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

12 years ago | 1

| accepted

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

12 years ago | 0

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

12 years ago | 2

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 2

| accepted

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 3

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

12 years ago | 0

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

12 years ago | 2

| accepted

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

12 years ago | 0

| accepted

Load more