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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 2

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 1

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

más de 12 años hace | 1

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 2

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 2

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 3

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

más de 12 años hace | 0

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

más de 12 años hace | 2

| aceptada

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

más de 12 años hace | 0

| aceptada

Cargar más