답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

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

대략 15년 전 | 0

답변 있음
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년 전 | 1

답변 있음
frequency determination
c = histc(A(:),unique(A))

대략 15년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

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

대략 15년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

| 수락됨

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

대략 15년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

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

대략 15년 전 | 0

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

대략 15년 전 | 0

답변 있음
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년 전 | 2

| 수락됨

답변 있음
Clearing data in an axes component
delete(get(handles.axes2,'children'))

대략 15년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
getworldfilename uses
Yes, it just creates the name.

대략 15년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

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

대략 15년 전 | 0

| 수락됨

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

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

대략 15년 전 | 2

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 18

| 수락됨

더 보기