Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

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

14 years ago | 1

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

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

14 years ago | 0

| accepted

Answered
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 years ago | 2

| accepted

Answered
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 years ago | 0

Answered
Do the boxplot stats without boxplot
Time boxplot: tic boxplot(...) toc against: tic prctile(...) max(...) min(...) toc and also against: ...

14 years ago | 1

Answered
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 years ago | 3

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 2

Question


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 years ago | 1 answer | 0

1

answer

Answered
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 years ago | 0

Answered
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 years ago | 2

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 0

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

14 years ago | 0

| accepted

Answered
compare particular strings in filenames array
doc ismember

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 1

| accepted

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

14 years ago | 2

| accepted

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

14 years ago | 1

| accepted

Load more