Frage


Since R2013a, unique() retrieves first occurrence: where in the docs?
The release notes 2013a state the change of the set functions, but I can't seem to find the info in the documentation of <http:/...

mehr als 11 Jahre vor | 1 Antwort | 5

1

Antwort

Frage


What is the optimal block size for importing a big .csv with textscan()
I have |.csv| files as big as ~17GB and limited RAM (to 8GB), therefore I am importing them in blocks. I noticed that importing ...

mehr als 11 Jahre vor | 0 Antworten | 0

0

Antworten

Beantwortet
When will the April 2013 Matlab contest be announced?
The previous one was the last one: http://blogs.mathworks.com/contest/2012/10/31/the-end-of-an-era/

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
function to read a cell contents
I discourage creating incrementally numbered variables in the workspace, however here's the bare-bone approach: % Index veg...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
How can I make markers transparent?
Alternatively, if you have the Statistics TB, you can use |<http://www.mathworks.co.uk/help/stats/scatterhist.html scatterhist()...

mehr als 11 Jahre vor | 1

Beantwortet
matlab datenum to excel datetime
In MATLAB you can convert MATLAB datenums into EXCEL datenums with the function <http://www.mathworks.co.uk/help/finance/m2xdate...

fast 12 Jahre vor | 0

Beantwortet
How can I set automatically the textarrow position on a graph?
You will find this utility very useful: http://www.mathworks.co.uk/matlabcentral/fileexchange/10656-data-space-to-figure-units-c...

fast 12 Jahre vor | 1

Beantwortet
matlab code for taking very less sample
You might find the <http://www.mathworks.co.uk/help/matlab/getting-started-with-matlab.html?s_tid=doc_12b getting started guide>...

fast 12 Jahre vor | 0

| akzeptiert

Beantwortet
Transparent surface with log axis
You won't be able to do that: http://www.mathworks.com/matlabcentral/answers/13441#answer_18342 However, you can use a manual...

fast 12 Jahre vor | 0

Beantwortet
Column of ONES in multiple regression
In <http://www.mathworks.co.uk/help/stats/regress.html |regress()|>, you need to add a column of ones to allow for an intercept ...

fast 12 Jahre vor | 0

Beantwortet
Charecter to binary form
You are comparing the char |'1'| with the numeric |1|. >> double('1') ans = 49 as in the ASCII table. You h...

fast 12 Jahre vor | 0

| akzeptiert

Beantwortet
For loop versus Matrix notation
You can use <http://www.mathworks.co.uk/help/matlab/ref/accumarray.html |accumarray()|>: Y = [uniquedates accumarray(X(:,1),...

fast 12 Jahre vor | 0

| akzeptiert

Frage


Spellcheck functionality in MATLAB editor
I would like to receive your *feedback*: * would you find useful to have *spellcheck* built into the MATLAB Editor? (Cons...

fast 12 Jahre vor | 5 Antworten | 21

5

Antworten

Beantwortet
Compound Interest with monthly Contributions, Unable to vectorize.
n = 18*12; % number of periods i = 0.005; % per period interest I = 1000; ...

etwa 12 Jahre vor | 0

Beantwortet
how can store two power 1000 value in matlab.
You can with the Symbolic Toolbox: s = vpa(2^1000,301);

etwa 12 Jahre vor | 0

Beantwortet
better way to improve performance of my code
Remove pause(0.5) which waits half a second, i.e. 0.5*1e7 = 5e6 = about 1388.89 hours.

etwa 12 Jahre vor | 0

Beantwortet
Clustergram Bug? - Different dendrograms produced by Clustergram vs SPSS and pdist -> linkage -> dendrogram using the same parameters
You can contact technical support by compiling this form: http://www.mathworks.co.uk/support/contact_us/index.html

etwa 12 Jahre vor | 1

| akzeptiert

Frage


Improve quality of Latex equations published to .html with publish()
Suppose you have this in a blank .m file: %% % I was writing something $x^2+e^{\pi i}$ Now, hit the publish button a...

etwa 12 Jahre vor | 1 Antwort | 4

1

Antwort

Beantwortet
detecting the existence of alphabetical elements
regexpr(str,'[a-zA-Z]')

etwa 12 Jahre vor | 0

Beantwortet
how I can replace diff(x(t), t) with xdot ?
syms t xdot; x = sym('x(t)'); f = sin(x); df = diff(f,t); subs(df,'diff(x(t), t)',xdot)

etwa 12 Jahre vor | 0

Beantwortet
large date/number/string text file reading to certain number of elements then ignoring end of line
To skip ret of the line use |'%*[^\n]'|: fid = fopen('test.txt'); fmt = ['%s%s' repmat('%f',1,10), '%*[^\n]']; out = ...

etwa 12 Jahre vor | 0

| akzeptiert

Beantwortet
Too late to submit Negative feedback for R2012b !
I did test the R2012b_prerelease and I submitted my feedback as mentioned in the other post Aurelien linked. However, I am no...

etwa 12 Jahre vor | 4

Beantwortet
Obtaining same values at avery simulation using rand function
You can use |rng()| rng(1) rand(1,5) rng(1) rand(1,5) Or with your approach: s = RandStream('mcg16807'...

etwa 12 Jahre vor | 0

Beantwortet
Solving legend Problems in Matlab
mesh(v) mesh(probability) You forgot a |hold on| in between.

etwa 12 Jahre vor | 0

Beantwortet
Experiences with release 2012b
I already let TMW know but I'll be posting here as well: * I miss the previous edit configurations window. Now I have to crea...

etwa 12 Jahre vor | 9

Beantwortet
Mis match in comparing the values
http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F

etwa 12 Jahre vor | 2

| akzeptiert

Beantwortet
Generating array of consecutive timestamps in double
I recommend to use MATLAB serial dates as produced by |datenum()|. Any manipulation with dates becomes much easier. The appearan...

etwa 12 Jahre vor | 1

| akzeptiert

Beantwortet
Looking for a way to mask handle functions when calling methods or doc
*EDITED* Hide superclass methods using |Hidden| from <http://www.mathworks.co.uk/help/techdoc/matlab_oop/brjjv0d.html Method ...

etwa 12 Jahre vor | 0

| akzeptiert

Beantwortet
Implementation of limits on the optimization results
Should it be b = zeros(size(A,1),1); An example problem (without nonlinear constraints): f = @(x) x(1)^2 + x(2)^2 +...

etwa 12 Jahre vor | 1

| akzeptiert

Beantwortet
how to sum floating point elements of an array
"??? Subscript indices must either be real positive integers or logicals" It means you're doing something: a = 1:0.1:2...

etwa 12 Jahre vor | 0

Mehr laden