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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 0

| aceptada

Respondida
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 =...

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 1

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 0

Respondida
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:...

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 2

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 1

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

casi 15 años hace | 3

| aceptada

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 2

Pregunta


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

alrededor de 15 años hace | 1 respuesta | 0

1

respuesta

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

alrededor de 15 años hace | 0

Respondida
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',''); ...

alrededor de 15 años hace | 2

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

| aceptada

Respondida
compare particular strings in filenames array
doc ismember

alrededor de 15 años hace | 0

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 0

| aceptada

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

alrededor de 15 años hace | 1

| aceptada

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

alrededor de 15 años hace | 2

| aceptada

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

alrededor de 15 años hace | 1

| aceptada

Cargar más