Pregunta


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

casi 11 años hace | 0 respuestas | 0

0

respuestas

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

alrededor de 11 años hace | 0

| aceptada

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

alrededor de 11 años hace | 0

| aceptada

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

alrededor de 11 años hace | 1

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

alrededor de 11 años hace | 0

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

alrededor de 11 años hace | 1

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

alrededor de 11 años hace | 0

| aceptada

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

alrededor de 11 años hace | 0

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

alrededor de 11 años hace | 0

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

alrededor de 11 años hace | 0

| aceptada

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

alrededor de 11 años hace | 0

| aceptada

Pregunta


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

alrededor de 11 años hace | 5 respuestas | 21

5

respuestas

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

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 0

Respondida
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

más de 11 años hace | 1

| aceptada

Pregunta


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

más de 11 años hace | 1 respuesta | 4

1

respuesta

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

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 4

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

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 9

Respondida
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

más de 11 años hace | 2

| aceptada

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

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 0

Respondida
Generating index from end and start index
I recommend the nice submission by Bruno Luong: <http://www.mathworks.co.uk/matlabcentral/fileexchange/29854-multiple-colon mul...

más de 11 años hace | 1

Cargar más