Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

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

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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 =...

plus de 14 ans il y a | 1

| A accepté

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

plus de 14 ans il y a | 1

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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:...

plus de 14 ans il y a | 0

| A accepté

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

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
Do the boxplot stats without boxplot
Time boxplot: tic boxplot(...) toc against: tic prctile(...) max(...) min(...) toc and also against: ...

plus de 14 ans il y a | 1

Réponse apportée
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...

plus de 14 ans il y a | 3

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 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...

plus de 14 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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',''); ...

plus de 14 ans il y a | 2

| A accepté

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

plus de 14 ans il y a | 0

| A accepté

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

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
compare particular strings in filenames array
doc ismember

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

Charger plus