Respondida
Output values from a loop
The inner loop is completely unnecessary as you designed it. No variable changes as "i" varies. In addition to that you increm...

alrededor de 15 años hace | 0

Respondida
Exporting Data from MATLAB to MS word.
Check this FEX submission: *<http://www.mathworks.com/matlabcentral/fileexchange/15192 OfficeDoc - read/write/format MS Office d...

alrededor de 15 años hace | 1

Respondida
variable names
Variable parts of the name num = '1':'5'; let = 'A':'C'; Combine the variable parts nNum = numel(num); nLet = numel...

alrededor de 15 años hace | 0

Respondida
writing multiple arrays in a text file
fprintf(fid, '%f%f', [A;B]) A and B are doublr row vectors and the output is length(A) by 2 columns.

alrededor de 15 años hace | 1

Respondida
frequency determination
c = histc(A(:),unique(A))

alrededor de 15 años hace | 0

| aceptada

Respondida
I do not know the meaning of this code
Execute the parts of the expression you don't understand to see what happens (highlight the part of code you want to check and p...

alrededor de 15 años hace | 0

Respondida
Reading csv file and formating timestamp
Textscan solution: import skipping the non relevant parts fid = fopen('C:\Users\Oleg\Desktop\test.txt'); fmt = '%*f/%*...

alrededor de 15 años hace | 0

Respondida
what is wrong?
The vectorized solution to your problem: x = [33,11,33,11,22,33,11]; % Find the 33s that are immediately before 22 bon...

alrededor de 15 años hace | 0

Respondida
Increase the speed of the program
You're importing the following positions: ... 'B3086..H3086' 'B6088..H6088' 'B9090..H9090' ... You can do the same...

alrededor de 15 años hace | 0

Respondida
file name manipulation
X = 1; Y = 'a'; sprintf('S_1_%d_%s',X,Y) *EDIT* str = 'S_1_6_a' x = 3; regexprep(str,'(_)\d+(_[abcd])', ['$1'...

alrededor de 15 años hace | 0

| aceptada

Respondida
How to read .txt file and convert in to .xls
Considering a textfile as: Name: Hamad Marks: 10.05 Average: 11.55 Attendance: 80% Name: Johan Marks: 10.55 ...

alrededor de 15 años hace | 1

Respondida
Plotting two series of dicreet points with errorbars (std. dev.) on Y and X
Have you tried: * <http://www.mathworks.com/matlabcentral/fileexchange/10803-barweb-bargraph-with-error-bars barweb bargraph ...

alrededor de 15 años hace | 0

| aceptada

Respondida
altering matrices
If you have the Image Processing Toolbox use <http://www.mathworks.com/help/toolbox/images/ref/blockproc.html blockproc>

alrededor de 15 años hace | 0

Respondida
How can I allocate chances to a distribution
rnd = rand(100,1)*100; % Oversample interval [a b] = [80 100] a = 80; b = 100; rnd = [rnd; a + (b-a)*rand(100,1)];...

alrededor de 15 años hace | 0

| aceptada

Respondida
Pushbutton callback
No. You can execute a <http://www.mathworks.com/help/techdoc/matlab_prog/f9-39719.html callback with a timer>.

alrededor de 15 años hace | 0

Respondida
matlab -nosplash
*EDITED* For *all* platforms from command prompt (temporary) or for windows by editing the shortcut: *<http://www.mathworks.com...

alrededor de 15 años hace | 0

Respondida
creating a new file
Create new file discarding content if already exists: fid = fopen('results.str','w'); fprintf(fid,'%f,%f,%f\r\n',[1 2 3; ...

alrededor de 15 años hace | 2

| aceptada

Respondida
Clearing data in an axes component
delete(get(handles.axes2,'children'))

alrededor de 15 años hace | 0

| aceptada

Respondida
isspace finds wrong spaces in ascii file
If you're trying to split that sequence: % example input: line = {'75666 83929 92920' '75466 39293 92320 32424'};...

alrededor de 15 años hace | 0

| aceptada

Respondida
how to add iterations to a matrix as values in a loop and then manipulate the matrix with another matrix from the user interface
The expressions in _A_: (-l3/2)*sin(th3) (l2)*sin(th2r) ... should be scalar, which means that _th2r_ and _th3_ ...

alrededor de 15 años hace | 0

| aceptada

Respondida
How to import XLS files with multiple sheets using the Dataset Array function?
Use a loop as described in the *<http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F FAQ 4.12>* example (...

alrededor de 15 años hace | 0

Respondida
getworldfilename uses
Yes, it just creates the name.

alrededor de 15 años hace | 1

| aceptada

Respondida
Superscript minus vanishes using latex interpreter.
You are creating text objects on the same position: t1 = text(0.1,0.5,'$\tilde{V}^{+}$','Interpreter','latex'); t2 = text(0...

alrededor de 15 años hace | 0

Respondida
Show function parameters in console
*<http://www.mathworks.com/help/techdoc/matlab_env/brqxeeu-175.html#brqxeeu-182 Set a breakpoint>* and call the function. The ex...

alrededor de 15 años hace | 0

Respondida
Select rows with textscan
*1st approach: bulk import - select* % Import all fid = fopen('C:\Users\Oleg\Desktop\test.txt'); data = textscan(fid...

más de 15 años hace | 0

| aceptada

Respondida
covariance between 2 ts over time
*EDIT* X = rand(1500,50); % Window size ws = 25; % Preallocate szX = size(X); covC = cell(szX(1)-24,1); cov...

más de 15 años hace | 1

| aceptada

Respondida
Matrix multiplication-optimal speed and memory
sum(D.^2.*diag(W)) or (D.*diag(W)).'*D diag(W) can be replaced by the vector containing the diagonal elements.

más de 15 años hace | 0

Respondida
how to declare array of variable size
for i = 1:63 myArray{i} = zeros(a,b); end

más de 15 años hace | 2

| aceptada

Respondida
Financial Toolbox- frontcon and portalloc - risk aversion and risk free asset bounds
*EDITED* In general, you build the frontier with _frontcon/portopt_ and with _portalloc_ you simply use the two separation fund...

más de 15 años hace | 0

Respondida
how to change, by using commands, the width of lines (whiskers, median, outliers, etc.) and axes of a boxplot?
Call boxplot in the foloowing way: h = boxplot(rand(100,6)); set(h,{'linew'},{2}) or use directly: set(findobj(g...

más de 15 años hace | 18

| aceptada

Cargar más