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

15 years ago | 0

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

15 years ago | 1

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

15 years ago | 0

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

15 years ago | 1

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

15 years ago | 0

| accepted

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

15 years ago | 0

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

15 years ago | 0

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

15 years ago | 0

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

15 years ago | 0

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

15 years ago | 0

| accepted

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

15 years ago | 1

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

15 years ago | 0

| accepted

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

15 years ago | 0

Answered
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)];...

15 years ago | 0

| accepted

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

15 years ago | 0

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

15 years ago | 0

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

15 years ago | 2

| accepted

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

15 years ago | 0

| accepted

Answered
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'};...

15 years ago | 0

| accepted

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

15 years ago | 0

| accepted

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

15 years ago | 0

Answered
getworldfilename uses
Yes, it just creates the name.

15 years ago | 1

| accepted

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

15 years ago | 0

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

15 years ago | 0

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

15 years ago | 0

| accepted

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

15 years ago | 1

| accepted

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

15 years ago | 0

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

15 years ago | 2

| accepted

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

15 years ago | 0

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

15 years ago | 18

| accepted

Load more