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

fast 12 Jahre vor | 2

| akzeptiert

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

fast 12 Jahre vor | 1

| akzeptiert

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 1

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 1

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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 0

Beantwortet
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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 2

| akzeptiert

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 2

| akzeptiert

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

fast 12 Jahre vor | 0

Mehr laden