답변 있음
detailed description of handle properties from command line
inspect(gcf) Then right click on |Position| > help. *EDIT 2* You can write a function to open the html at the description...

14년 초과 전 | 0

| 수락됨

답변 있음
Continuous Linking of 2 Plots
Here's a small GUI, the main part is *ln_button* and in particular you have to customize what happens at its end, I just plot so...

14년 초과 전 | 1

| 수락됨

답변 있음
Unable to return historical data for given security.
The note on <http://www.mathworks.com/help/toolbox/datafeed/yahoo.fetch.html yahoo.fetch> says: _"Retrieving historical data for...

14년 초과 전 | 0

| 수락됨

답변 있음
Square Matrix
If you want to take a vector from excel and replicate it such that the result is a square matrix, then: a = xlsread('myfile...

14년 초과 전 | 0

| 수락됨

답변 있음
The future of CSSM and Answers
Quoting Jan: "In consequence I think, that there is an important demand for more general discussions in this forum. How can the...

14년 초과 전 | 1

| 수락됨

답변 있음
Rounding-off zero to negative
% Random input A = randn(10,1); % Index negative values idx = A < 0; % Substitute them with zero A(idx) = 0;

14년 초과 전 | 0

| 수락됨

답변 있음
Question about random numbers and rejecting
function r = randnum_reject(a,b,c) % Rudimental check if isequal(a,b,c) return end r = c; while r == c r =...

14년 초과 전 | 1

| 수락됨

답변 있음
cell contents in a loop_fangjun's answer
vars = {'ind' 'ger' 'us' 'swis' 'kor' 'ch'}; files = {'india' ,'germany','usa' ,'korea','','';... 'germany','usa'...

14년 초과 전 | 1

답변 있음
Reading a text file with attached string data
You cannot read a fixed width file with a numeric specifier, e.g. |%5d|, because it will end reading the first |-3| as |-3111| w...

14년 초과 전 | 1

| 수락됨

답변 있음
opinion about matlab
Describing MATLAB as a mere tool is just too unfair. It is an environment and a programming language. You can virtually do anyth...

14년 초과 전 | 0

답변 있음
how do i create a dataset and save it. i need to create one with different types of data (char, double, int, T/F, etc.). how do i also save it and edit it for modification?
First, it appears you're using an older version of Matlab, in which case you have to refer to your version of the documentation:...

14년 초과 전 | 0

| 수락됨

답변 있음
Structures
You could have the following structure: s.myfield = 10; s.another = 20; s.hello = 30; Now suppose you have a list with...

14년 초과 전 | 0

| 수락됨

답변 있음
Making Dynamic array
What do you need it for? There's no such thing as a dynamic array but you can grow an array with concatenation which is usual...

14년 초과 전 | 2

| 수락됨

답변 있음
Functions - How to use?
You have to put the .m file in a separate directory. I have a directiry called FEX. Then you have to add that directory to th...

14년 초과 전 | 0

답변 있음
Do the boxplot stats without boxplot
Time boxplot: tic boxplot(...) toc against: tic prctile(...) max(...) min(...) toc and also against: ...

14년 초과 전 | 1

답변 있음
Getting wrong value of sum
First of all don't use |sum| as a variable since it's a MATLAB function, next time you try to call the function it will be obfus...

14년 초과 전 | 3

| 수락됨

답변 있음
Import txt file and pick the values after the selected key words using Regular Expression
This time I slightly different solution: fid = fopen('test.txt','r'); text = textscan(fid,'%s','Delimiter',''); text = t...

14년 초과 전 | 1

| 수락됨

답변 있음
How to delete elements that have repeats in arrays
Your original question is actually different from what you're trying to accomplish. To remove duplicate rows: [unV,locA,lo...

14년 초과 전 | 2

질문


When I type in ~ on my laptop (FN + ALT + 126) the cursor jumps and misplaces the tilde
So far I checked 3 different laptops and I observe a rather annoyng behaviour on the last MATLAB release (also on R2010b?). R20...

14년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
large files, very slow editor, no fix?
By moving the nested functions to separate files you will: # Lose the ability to see the parent's function workspace # Other fu...

14년 초과 전 | 0

답변 있음
Find the key word in the text file then pick the value next to it
% Import the whole file at once fid = fopen('test.txt','r'); text = textscan(fid,'%s','Delimiter','','endofline',''); ...

14년 초과 전 | 2

| 수락됨

답변 있음
Anomaly with the number 32??
Be careful with cell arrays: isequal({' '}, 32) % 0 Array = {32}; isequal({' '},Array) % true It is not comparin...

14년 초과 전 | 0

| 수락됨

답변 있음
Garch with dummy in mean equation
% Fake returns R = randn(1000,1); % Intercept dummy D1 = R > 0; % Coefficient dummy D2 = zeros(size(R)); ...

거의 15년 전 | 0

답변 있음
Adding new fields to a structure using for loop
If you already have a csvFiles, the first line should be: csvFiles = [csvFiles dir('*.csv')]; Before that I would suggest t...

거의 15년 전 | 0

| 수락됨

답변 있음
compare particular strings in filenames array
doc ismember

거의 15년 전 | 0

답변 있음
Calculating means ect from cell structure
You overwrote the function |mean| with a variable with the same name, don't do that. From the second iteration |mean(...)| will...

거의 15년 전 | 0

| 수락됨

답변 있음
use of strmatch to find a string NOT at the start of a line
Use <http://www.mathworks.com/help/techdoc/ref/strfind.html |strfind|> idx = strfind(everything,'PseudoVoigt') idx = ~cellf...

거의 15년 전 | 0

| 수락됨

답변 있음
How to deal with the problem of the changing size data?
What is |fileArray|? You can always preallocate |im| as a cell array with length equal to |fileArray| and extract/concatenate o...

거의 15년 전 | 1

| 수락됨

답변 있음
Averaging data
time1 = [0.14 0.99 1.67 2.45 3.10 3.70 4.24 5.00]; res1 = [4 6 2 9 1 0 4 7]; axis([0 5 0 10]) hold on % Plot stair...

거의 15년 전 | 2

| 수락됨

답변 있음
dialog with checkboxes in gui
In the following example I build a basic gui which has two checkboxes and a pushbutton. The only action assigned to the push...

거의 15년 전 | 1

| 수락됨

더 보기