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

alrededor de 12 años hace | 1 respuesta | 4

1

respuesta

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

alrededor de 12 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)

alrededor de 12 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 = ...

alrededor de 12 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...

alrededor de 12 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'...

alrededor de 12 años hace | 0

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

alrededor de 12 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...

alrededor de 12 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

alrededor de 12 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...

alrededor de 12 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 ...

alrededor de 12 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 +...

alrededor de 12 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...

alrededor de 12 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...

alrededor de 12 años hace | 1

Respondida
How to create a cell of strings from a vector?
Encapsulate |sprintf()| into |arrayfun()|: arrayfun(@(in) sprintf('%.0f', in), x,'un',0)

alrededor de 12 años hace | 0

| aceptada

Respondida
Memory overflown for the number to be saved
Using the <http://www.mathworks.co.uk/help/techdoc/matlab_prog/f0-42649.html#brchk1t look-behind operator> in regular expression...

alrededor de 12 años hace | 0

Respondida
Issue using the writeVTK.m
Valid MATLAB functions are |fprintf()| or |sprintf()|. edit vriteWTK() And modify the call to printf into fprintf or spr...

alrededor de 12 años hace | 0

| aceptada

Pregunta


hggroup of text() objects and contextmenu
------------------------------------- *THE SITUATION* ------------------------------------- I am creating text labels ...

alrededor de 12 años hace | 1 respuesta | 0

1

respuesta

Respondida
How can i randomly divide a dataset(matrix) into k parts ??
Suppose you have the |N by M| matrix |A|. I would randomly permute positions from |1:N| and then group them into |k| partitions....

alrededor de 12 años hace | 0

Respondida
Developing a MIN/MAX indicator.
Plotting on *|Close|* with window size 14. importfile('BundDaily.xls') period = 14; n = numel(Close); % Run...

alrededor de 12 años hace | 1

| aceptada

Respondida
How can i read a sequence of wave files?
<http://www.mathworks.co.uk/help/techdoc/import_export/br5wz4t.html#br7q_u6 Processing a Sequence of Files>

alrededor de 12 años hace | 1

Respondida
I want to read a text file having strings and numeric data. Is there any better function than textscan?
Using textscan you can import one line and skip the next one (I save your example to test.txt). % Import lines which start wi...

alrededor de 12 años hace | 2

| aceptada

Respondida
I dont know how can i do it?
_[Answering to prevent delete and text of request to prevent edits]_ MANO GANAD writes: Write matlab code to compute the r...

alrededor de 12 años hace | 0

Respondida
Problems creating function handle to method from user input text string during object construction
function classify(obj) % Should execute learner method specified by text string obj.learner ...

alrededor de 12 años hace | 1

| aceptada

Respondida
How can I assign a single value (index) for each point in a square?
You can use <http://www.mathworks.co.uk/help/matlab/ref/sub2ind.html |sub2ind()|> sub2ind([M,N], x,y)

alrededor de 12 años hace | 0

| aceptada

Respondida
How to extract leading non-zero digit?
Another solution based on regexp (from this <http://www.mathworks.co.uk/matlabcentral/answers/47429-what-does-some-symbol-in-reg...

alrededor de 12 años hace | 2

Respondida
How do code for user input of text file name to be read?
use <http://www.mathworks.co.uk/help/matlab/ref/uigetfile.html |uigetfile()|> to get the name Use <http://www.mathworks.co.uk...

alrededor de 12 años hace | 0

Respondida
How can I draw 3D graph from .xls file?
# Import the files with <http://www.mathworks.co.uk/help/matlab/ref/xlsread.html |xlsread()|> # Then plot the numeric matrix wi...

alrededor de 12 años hace | 0

Respondida
Strange database toolbox behavior
The code looks correct, unless you're doing something that fetches most of the data (without storing it) before calling |grabInP...

alrededor de 12 años hace | 0

Respondida
Is this a Possible MATLAB bug? (Further strange Behavior)
Equivalently function out = foo(in) in; end will throw the same error. If you call |a = foo(10)|, the functio...

alrededor de 12 años hace | 2

Cargar más