Answered
use of parallel computing function lowers quality of saved image
I can reproduce this. It is apparently somehow related to how the figures are created in headless mode. Please contact techn...

13 years ago | 2

Answered
How to register where the mouse button is pressed?
Set The object's _ButtonDownFcn_ to register the event and get the axes' _'CurrentPoint'_ if you need more information about whe...

13 years ago | 0

| accepted

Answered
How to delete this files..?
Also make sure that the files aren't open in MATLAB or another program.

13 years ago | 4

Answered
No template Workflow for Financial & Econometric
I would recommend starting with one or many of our prerecorded webinars: <http://www.mathworks.com/company/events/webinars/in...

13 years ago | 0

| accepted

Answered
Plotting with Symbolic Toolbox
One way: syms p F = 2*p + 1; G = -2*p + 1; figure;axes;hold on lims = [-50, 50]; fplot(@(x)subs(F,p,x),lims,'b') ...

13 years ago | 0

Answered
Do you ever make use of non-uniform arrays of structures?
When you save a figure, it is internally stored as a *.mat file containing a scalar structure. If you dig into this for a fan...

13 years ago | 0

Answered
How are you supposed to write the code returned from "grabcode" to a file?!
Two easy ways: You can use the traditional, and probably better, trifecta of |fopen/fprintf/fclose| fid = fopen('test2.m...

13 years ago | 0

| accepted

Answered
Use interp1 to interpolate a matrix row-wise
y = toeplitz(1:10); interp1((1:10).',y,(1:0.5:10))

13 years ago | 0

Answered
How can generalize severel "For loop" ?
Use a nested for loop: for ii = 1:n for jj = ii:n stuff end end

13 years ago | 0

| accepted

Answered
cellfun(@isnan) and erasing NaN
Close! A={'a', 1, NaN, 1, 1, 1, 1;... 'b', 2, NaN, NaN, NaN, NaN, NaN;... 'c', 3, NaN, 3, 3, 3, 3}; B = A(~a...

13 years ago | 2

| accepted

Answered
structure containing empty string arrays
You should be able to use |repmat()| to create a cell array of empty strings: C = repmat({''},10,10) And then feed this ...

13 years ago | 0

Answered
Creating a waterfall plot
|flipud()| or |fliplr()| ? doc fliplr doc flipud

13 years ago | 0

| accepted

Answered
Delta between two data cursor points in plot
You can do this in the _'UpdateFcn'_ of the |datacursormode| object.

13 years ago | 0

Answered
how to do some evaluation in quadruple precision arithmetic
Either use VPA in the Symbolic Math Toolbox or John's HPF class: <http://www.mathworks.com/matlabcentral/fileexchange/36534-h...

13 years ago | 0

| accepted

Answered
how to set the value of popup menu in another callback?
Use |addlistener| to listen to _'PostSet'_ events of the string changing in other uicontrols. function showStringUpdate ...

13 years ago | 0

Answered
Saving files uniquely when I process a sequence of files
Give it a numerical extension (id) Simple example: for ii = 1:10 filename = ['Friday_' num2str(ii) '.txt'] end

13 years ago | 0

| accepted

Answered
Importing multiple files with the same content and saving each uniquely
<http://www.mathworks.com/matlabcentral/answers/57446 FAQ>

13 years ago | 0

| accepted

Answered
All Tabbed View in Matlab 2012b
I don't see it either. To work around this I would get it to how you want it and then save the layout as "All Tabbed". The...

13 years ago | 0

| accepted

Answered
How can I move the position of my GUI on the screen from the default?
What about part #2 from what you have above in the first part of the _OutputFcn_?

13 years ago | 0

Answered
"Improper index matrix reference" error
Looking at: doc coder.ceval _coder.ceval('cfun_name', cfun_arguments)_ So above the correct syntax looks like it woul...

13 years ago | 0

Answered
Mean of Cells of Cells
I think you need two cellfuns with the inner-cellfun being part of the anonymous function for the first: cellfun(@(c)cellfu...

13 years ago | 0

Answered
Surf and XLIM YLIM -- setting the limits on a 3D graph doesnt seem to work?
Clipping is known to not necessarily work for three-d plots: <http://www.mathworks.com/support/solutions/en/data/1-15HPR/inde...

13 years ago | 0

| accepted

Answered
Dialog box with variable and button
x = 5; questdlg(sprintf('You have %dlb of food?',x),'Hungry Yet?','Buy Food','Starve Longer','Buy Food')

13 years ago | 0

| accepted

Answered
Why does cubic interpolation give values that are outside the data range?
<http://mrkwr.wordpress.com/2006/11/08/mark-twain-on-the-perils-of-extrapolation/>

13 years ago | 0

Answered
I have a problem with 'togglebutton' in MATLAB 2012a GUI
Put a |drawnow| inside of the |while|-loop before you |get(hObject,'Value')|. This forces MATLAB to flush the event queue b...

13 years ago | 1

| accepted

Answered
dataset ismember error message
|ismember| overloaded for datasets appears to be new in 12b. If your company/university is current on your SMS subscription you...

13 years ago | 0

| accepted

Answered
Is it possible to subclass Date?
No you'll have to write your own. (The reason your getting the error above is because |year| needs to be inside a |methods| blo...

13 years ago | 1

| accepted

Answered
image processing toolbox:imshow problem
What is the output of: which -all image My guess is this will give you a _major_ hint. If it doesn't, how are you cal...

13 years ago | 0

Answered
Why does Matlab not allow you to interupt a function mid execution?
You can use ctrl+c to stop some things but not all. See this solution: <http://www.mathworks.com/support/solutions/en/data/1...

13 years ago | 0

Answered
Removing cellfun, regexp and function handles
Don't convert to cell: new_my_results = regexp({my_results.name},'my_string'); Instead use (I assume this is a struct arr...

13 years ago | 0

| accepted

Load more