Answered
Why does ode15s open a new windows command window for each iteration?
Ha! I was very worried when I first ran this. Stepping through it, if you look at the end of line 230. CPI2 = C1 + C2*TB...

11 years ago | 2

| accepted

Answered
Making a GUI through GUIDE that can search a folder in My Computer and look for a *.csv file in that folder, rename this file and put it in a new folder
doc uigetdir doc dir doc copyfile doc mkdir The four commands should be able to do everything you've asked.

11 years ago | 1

| accepted

Answered
How to interpolate between matrices over time?
Well you could do 128^3 optimization problems too. I don't see any reason why you can't do this with interp1. x = rand(128...

11 years ago | 0

Answered
Built-in Multithreading on multiple CPUs
Some of the libraries that MATLAB uses such as Lapack, fftw and IPP have builtin multithreading. As for a speed-up, your mi...

11 years ago | 0

Answered
How do I make a 10 x 10 matrix variable with the numbers 1 to 100, in both column and row major forms?
b = bsxfun(@plus,(0:9).',1:10:100)

11 years ago | 0

| accepted

Answered
When using the import tool to import data from an excel file, how do I convert the spreadsheet dates to datenumbers?
You could also click the drop down arrow next to the column and select date as the option: <</matlabcentral/answers/uploade...

11 years ago | 0

Answered
Potential spam auto-detector
I like the way it makes <http://www.mathworks.com/matlabcentral/answers/contributors/5647256-stefanie spammers' accounts> have n...

11 years ago | 1

Answered
How to do this without blkproc function..?
Why don't you want to use |blkproc| (or |blockproc|)? You could always use two for-loops to do this.

11 years ago | 0

Answered
How to automatically change the number of digits to the right of the decimal point in the fprintf function
You can use * as a wildcard to point at inputs: sprintf('%*.*f', 6, 4, pi) And in the doc for |sprintf| under "field wid...

11 years ago | 0

| accepted

Answered
Error of "Too many input arguements"
If you want to optimize two numbers between -5 and 5, you shouldn't be using |rand| but instead letting the optimizer find them....

11 years ago | 1

Answered
Goto command in matlab: Undefined function 'goto' for input arguments of type 'double'"
MATLAB does not have a |goto| function. Use regular functions instead. <http://www.mathworks.com/help/releases/R2014a/matlab...

11 years ago | 0

| accepted

Answered
how to extract the area, perimeter for the object present in the image?
I would threshold the output of |stdfilt| (The background has low variance), call |imfill('holes')| on the thresholded image and...

11 years ago | 0

Answered
How to read the header lines in a text file?
Also look at just using the import tool to import them as a cell array: Home Tab -> Import Data -> Select your file

11 years ago | 0

Answered
Change Mouse/ Cursor appearance in ginput
What are you trying to do? I typically avoid |ginput| and would recommend using an |impoint| (Image Processing Tbx req'd) ins...

11 years ago | 0

Answered
Find all values in an array neighbored on both sides by NaN.
A = [1 2 4 2 NaN 2 4 NaN 6 NaN NaN 9 5 NaN]; A(conv(double(isnan(A)),[1 0 1],'same')==2)

11 years ago | 0

| accepted

Answered
out of memory: array too long
That's only going to require 57.8 gigabytes of memory for a single column. And that's the end result. Surely there'll be some ...

11 years ago | 0

| accepted

Answered
execute fcn by a change of a Property
Though Adam's approach is ideal, you could skip it and just add a listener to the _'PostSet'_ event of the ListBox' _'String'_. ...

11 years ago | 2

| accepted

Answered
How can I rotate a figure in an image according to its principal axis?
Use |regionprops| to find the _'orientation'_and |imrotate| to rotate it with this information doc regionprops doc imrotat...

11 years ago | 0

Answered
How to set contourf colors ?
doc caxis And a simple example: contourf(magic(5),3); caxis([0 25]) colormap(rand(3))

11 years ago | 0

Answered
Fill a square with rectangles
doc intlinprog In R2014a with Optimization Toolbox.

11 years ago | 0

Answered
MATLAB - String preview truncated at 128 characters
How are you copying it? I would recommend using a function to automate writing it. Probably |fopen/fprintf/fclose|, or one...

11 years ago | 0

Answered
Accuracy of Simulation time
Floating point accuracy: <http://www.mathworks.com/matlabcentral/answers/57444-faq-why-is-0-3-0-2-0-1-not-equal-to-zero>

11 years ago | 0

| accepted

Answered
Delete a handles parameter
dbstop if error Will stop in debug mode when the error is thrown. You can see what it's doing here. Another thing you cou...

11 years ago | 0

Answered
Multiple function calls requiring vectorised expressions.
It sounds like you might be able to use |bsxfun| to apply the operation to the two separate dimensions. Consider: >> bsxfu...

11 years ago | 0

Answered
How to reduce computation time for this loop. My more than 90% of time is consume by this subsection
Is _dist_ preallocated? How much does it speed up if you run it backwards to dynamically preallocate? for h = r:-1:1 ...

11 years ago | 0

Answered
How do I add help information of my own toolbox to the help browser?
I don't think it's possible.

11 years ago | 0

Answered
Where I can get the MJS software?
You have to purchase the <http://www.mathworks.com/products/distriben/ MATLAB Distributed Computing Server>

11 years ago | 0

Answered
CD Error when publishing
which -all size My guess is you've written your own |size| function that is shadowing MATLAB's size and throwing off |publi...

11 years ago | 0

Answered
calculate the accumulation of a variable over time within a loop?
Once you get the month data, the code will be almost identical to this answer: <http://www.mathworks.com/matlabcentral/answer...

11 years ago | 2

| accepted

Answered
Matlab desktop class failure
Sounds like it could be a preferences issue. Run the attached function in nodesktop mode to refresh the preferences.

11 years ago | 0

Load more