Answered
Market Shares Data
If you have te Datafeed TB: *<http://www.mathworks.com/help/toolbox/datafeed/bp_usto-1.html#bp_ustr-162 yahoo financial data>* ...

15 years ago | 0

Answered
ndgrid with unknown number of output arguments
You were very close: a = {0:5,0:1,3:10}; b = cell(1,numel(a)); [b{:}] = ndgrid(a{:});

15 years ago | 10

| accepted

Answered
??? Undefined function or method 'load_meas' for input arguments of type 'char'.
You have to add the path where the function resides. addpath and if you wish to save the path for future use: savepath ...

15 years ago | 0

Answered
Efficient way to fill vector values from another vector
Two alternative methods which use the *<http://www.mathworks.com/matlabcentral/fileexchange/6436 rude>* tic [len,val] = ...

15 years ago | 0

Answered
rounding errors in for loop
I would use *<http://www.mathworks.com/help/techdoc/ref/histc.html histc>*, it's more robust: function ind = computeIndex(m...

15 years ago | 1

Answered
Appending dataset of varying length
The number of rows is not a problem: A = dataset({rand(10,1),'col1'}); B = dataset({rand(20,1),'col1'}); C = [A;B] ...

15 years ago | 0

| accepted

Answered
Matrix Conversion
use *<http://www.mathworks.com/help/techdoc/ref/reshape.html reshape>*: a = [1 2 3 4]; reshape(a,2,2).' You may find also ...

15 years ago | 0

| accepted

Answered
How to simplify polynomial expansion?
syms z % Now set f = ... all the expression here f = simplify(f);

15 years ago | 0

Answered
memory and program
*<http://www.mathworks.com/support/tech-notes/1100/1106.html 1106 - Memory Management Guide>*

15 years ago | 0

Answered
Help with a simple matlab code
b = 6.0; h = 6.582122e-16; m = 0.067*9.109390e-31; V = 0.2; E = 0:0.02:0.4; f1 = sqrt(2*m*b^2*E/h^2); g1 = (...

15 years ago | 0

| accepted

Answered
align problem in multiple axes
Have you tried *<http://www.mathworks.com/help/techdoc/ref/plotyy.html plotyy>*? *EDIT* What problems you have with plotyy? W...

15 years ago | 0

Answered
how to retrieve data(select statement) from mysql using matlab GUI
I would suggest you to read the neat example given in <http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui...

15 years ago | 0

Answered
Overlaying Subplots
hold on Before plotting on the *same* plot the second time.

15 years ago | 1

Answered
import csv file and skip the first 5 lines that contain text
Use *<http://www.mathworks.com/help/techdoc/ref/textscan.html textscan>*: *EDIT* typo: fid = fopen('filename') data = tex...

15 years ago | 0

Answered
Context menu only works in the border around my uitable...
uh = uicontextmenu; uimenu(uh,'label','blabla') t = uitable('Data',magic(10),'uicontextmenu',uh)

15 years ago | 0

Answered
array to vector conversion
A = rand(450,210,4); *EDIT* % Switch 2nd dim with 1st A = permute(A,[2,1,3]); % Reshape into vector each layer A ...

15 years ago | 0

| accepted

Answered
add string to matrix/ array in loop
fldr = 'C:\Users\Oleg\Desktop\'; s = dir(fldr); strcat(fldr, {s(~[s.isdir]).name})

15 years ago | 1

| accepted

Answered
How to find largest connected component ??
*<http://www.mathworks.com/help/toolbox/images/ref/regionprops.html bwconncomp>*

15 years ago | 1

Answered
Accessing an array element whose subscript is stored in a vector
A = [1,2,3 4,5,6 7,8,9]; % Add third dimension A(:,:,2) = A+9; % Index ind = [2,3,2]; ind = nu...

15 years ago | 0

| accepted

Answered
inserting headers into a vector
My solution, based on the assumption that headers don't have to be repmatted: % Example input, stepsize and one header (mul...

15 years ago | 0

Answered
Find first 1 of the first sting of 1s who's length exceed the length of every subsequent string of 0s
My solution with the aid of *<http://www.mathworks.com/matlabcentral/fileexchange/6436-rude-a-pedestrian-run-length-decoder-enco...

15 years ago | 0

Answered
Matrix help
The apostrophes just indicate that you're using a cell array to store elements. If you access the content of the cell, you'll...

15 years ago | 0

Answered
Riskless assets and Financial toolbox
This link may be of some help *<http://www.mathworks.com/help/toolbox/finance/f9-6187.html Optimal Risky Portfolio Example>* Po...

15 years ago | 0

| accepted

Answered
Vectorize the following loop
n = 3e4; weights = rand(n,1); c = cumsum(weights/sum(weights)); A = zeros(1,n); x = rand(1,n); tic for i = 1...

15 years ago | 3

| accepted

Answered
Error using adftest
Seems like there is a path problem. Is the econometric toolbox listed when you type *_ver_* in the cmd window?

15 years ago | 0

| accepted

Answered
How do structures work?
ss.phi = rand(10); ss.phi = ss.phi(1) Saying it's not working is as far as you can get from a clear description of a proble...

15 years ago | 0

Answered
dlm read error in data import - alternatives?
I suggest to replace the dlmread with texscan jumping the headerlines. Also, review the format of the file since it seems to me...

15 years ago | 0

Answered
Extract overlapped rows from two excel files
[data1, text1] = xlsread(xls1); [data2, text2] = xlsread(xls2); [text,pos] = intersect(text1,text2); data1(pos,:)

15 years ago | 0

| accepted

Answered
importing data from excel to matlab
To import data from excel *<http://www.mathworks.com/help/techdoc/ref/xlsread.html xlsread>*

15 years ago | 0

Answered
Indexing matrix in matlab
<http://www.mathworks.com/help/techdoc/ref/isequal.html isequal> How are those matrices generated, what are their dimensions,...

15 years ago | 0

Load more