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

alrededor de 12 años hace | 2

| aceptada

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

alrededor de 12 años hace | 1

| aceptada

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 1

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 1

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

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 0

Respondida
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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 2

| aceptada

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 2

| aceptada

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

alrededor de 12 años hace | 0

Cargar más