Answered

Compare average monthly stock return data

See the optional 'nanflag' argument to mean-- M = mean(___,nanflag) specifies whether to include or omit NaN values from the ca...

Compare average monthly stock return data

See the optional 'nanflag' argument to mean-- M = mean(___,nanflag) specifies whether to include or omit NaN values from the ca...

18 dagen ago | 0

Answered

Fill in array with different lengths of variables at different locations

The trick for stuff like this is to "grow" from the back to the front -- so the indices you haven't gotten to yet don't change b...

Fill in array with different lengths of variables at different locations

The trick for stuff like this is to "grow" from the back to the front -- so the indices you haven't gotten to yet don't change b...

18 dagen ago | 0

| accepted

Answered

How to plot discrete data in a stackedplot

There's a 'PlotType' property in the stackedplot object that has the option for 'stairs' -- none of the previous gyrations are n...

How to plot discrete data in a stackedplot

There's a 'PlotType' property in the stackedplot object that has the option for 'stairs' -- none of the previous gyrations are n...

18 dagen ago | 2

| accepted

Answered

How do I compare two graphs for X value at a specific point?

Well, as Star Strider says, the disparity in orders of magnitude between the two makes one truly wonder just how they're suppose...

How do I compare two graphs for X value at a specific point?

Well, as Star Strider says, the disparity in orders of magnitude between the two makes one truly wonder just how they're suppose...

19 dagen ago | 0

| accepted

Answered

Appdesigner: Writing Data To Excel

writetable returns no arguments and needs the data to output as an argument -- read the doc first... % Button pushed function: ...

Appdesigner: Writing Data To Excel

writetable returns no arguments and needs the data to output as an argument -- read the doc first... % Button pushed function: ...

19 dagen ago | 1

| accepted

Answered

Combining chart for comparison got error

h1.Children.Children returns a comma-separated list-- >> h1.Children.Children ans = 0×0 empty GraphicsPlaceholder array. ...

Combining chart for comparison got error

h1.Children.Children returns a comma-separated list-- >> h1.Children.Children ans = 0×0 empty GraphicsPlaceholder array. ...

19 dagen ago | 0

| accepted

Answered

Writing x values with subscript in the graph

hAx=gca; % save the axes handle -- may want later hAx.TickLabelInterpreter='tex'; % set tick lab...

Writing x values with subscript in the graph

hAx=gca; % save the axes handle -- may want later hAx.TickLabelInterpreter='tex'; % set tick lab...

20 dagen ago | 0

| accepted

Answered

How to extract a column from a matrix by searching

vWant=11; vecRes=matrix_test(:,matrix_test(1,:)==vWant);

How to extract a column from a matrix by searching

vWant=11; vecRes=matrix_test(:,matrix_test(1,:)==vWant);

21 dagen ago | 0

| accepted

Answered

How to plot discrete data in a stackedplot

You can get creative and use stackedplot to create the axes for you, and then go "handle-diving" to find and modify the content ...

How to plot discrete data in a stackedplot

You can get creative and use stackedplot to create the axes for you, and then go "handle-diving" to find and modify the content ...

21 dagen ago | 1

Answered

Log return of a timetable

To put the computed return at the end time point of the interval, augment the diff vector with a missing-value indicator--- dat...

Log return of a timetable

To put the computed return at the end time point of the interval, augment the diff vector with a missing-value indicator--- dat...

21 dagen ago | 0

| accepted

Answered

Merge dataset with different lengths

TT = synchronize(DAX,SP500,'intersection'); TT = synchronize(TT,NIKKEI,'intersection'); where DAX, SP500 and NIKKEI are the th...

Merge dataset with different lengths

TT = synchronize(DAX,SP500,'intersection'); TT = synchronize(TT,NIKKEI,'intersection'); where DAX, SP500 and NIKKEI are the th...

22 dagen ago | 1

| accepted

Answered

How and where to place the legend box in a "tiledlayout"?

Well, you have to get creative -- the following experiment t=tiledlayout(2,2); % create a 2x2 layout nexttile, pl...

How and where to place the legend box in a "tiledlayout"?

Well, you have to get creative -- the following experiment t=tiledlayout(2,2); % create a 2x2 layout nexttile, pl...

22 dagen ago | 1

Answered

Incorporating Multiple Dummy Variables In A Regression Model

Firstly, all have to be column vectors; secondly you'll have to have the same number of observations for each to build an arra...

Incorporating Multiple Dummy Variables In A Regression Model

Firstly, all have to be column vectors; secondly you'll have to have the same number of observations for each to build an arra...

26 dagen ago | 1

| accepted

Answered

Axis position changes when i use rectangle

I've NEVER understood (and never will understand) the annotation implementation only in absolute units of reference relative to ...

Axis position changes when i use rectangle

I've NEVER understood (and never will understand) the annotation implementation only in absolute units of reference relative to ...

26 dagen ago | 1

| accepted

Answered

Table - keeping specific data

You've got parentheses in the wrong place to do combination of logical addressing, but unless you only want "1" values in the ou...

Table - keeping specific data

You've got parentheses in the wrong place to do combination of logical addressing, but unless you only want "1" values in the ou...

27 dagen ago | 0

Answered

What Takes to Wrap MATLAB function to Use From Excel?

While I didn't answer my own Q?, I'll put an Answer here for any others who stumble over the thread and may be as confused as I ...

What Takes to Wrap MATLAB function to Use From Excel?

While I didn't answer my own Q?, I'll put an Answer here for any others who stumble over the thread and may be as confused as I ...

27 dagen ago | 0

Answered

Why won't my excel file import onto matlab?

You've got a very inefficeint and hard-to-read for a generic code format in the spreadsheet ...there's text scattered around in ...

Why won't my excel file import onto matlab?

You've got a very inefficeint and hard-to-read for a generic code format in the spreadsheet ...there's text scattered around in ...

27 dagen ago | 0

| accepted

Answered

how to create a second x axis with different intervals?

You've actually got three copies of the one axes handle (ax,ax1,ax2); you've never created a second axes. hSc=scatter(rand(10,1...

how to create a second x axis with different intervals?

You've actually got three copies of the one axes handle (ax,ax1,ax2); you've never created a second axes. hSc=scatter(rand(10,1...

27 dagen ago | 0

| accepted

Question

What Takes to Wrap MATLAB function to Use From Excel?

I've got a MATLAB function that pulls data from an Excel spreadsheet (actually two separate ones) and then writes after processi...

28 dagen ago | 2 answers | 0

Answered

re-arrange data

>> C=[{'A'}, {'B1'}, {'X6(1.4M), X15(3M), X25(5M), X50(10M), X75(15M), X100(20M)'}, {' X6~0, X15~1, X25~2, ...

re-arrange data

>> C=[{'A'}, {'B1'}, {'X6(1.4M), X15(3M), X25(5M), X50(10M), X75(15M), X100(20M)'}, {' X6~0, X15~1, X25~2, ...

29 dagen ago | 0

Answered

How do I plot only the lower error bars?

residual = N - y_new; errorbar(x_new,y_new,residual,[]) Input arguments for four inputs are: errorbar(x,y,neg,pos) If only t...

How do I plot only the lower error bars?

residual = N - y_new; errorbar(x_new,y_new,residual,[]) Input arguments for four inputs are: errorbar(x,y,neg,pos) If only t...

ongeveer een maand ago | 0

Answered

How do I combine multiple plots that use hAxes = 'NextPlot' using subplot?

%% Plot1 s=[186,561,831,864,865,870,943,997,1001,1049,1055,1063,1077, 1078, 1171,1180,1190,1494,1497,1499,1522]; hAx(1)=subplo...

How do I combine multiple plots that use hAxes = 'NextPlot' using subplot?

%% Plot1 s=[186,561,831,864,865,870,943,997,1001,1049,1055,1063,1077, 1078, 1171,1180,1190,1494,1497,1499,1522]; hAx(1)=subplo...

ongeveer een maand ago | 0

Answered

create a table next to a graph on figure

A table object can't be put in a figure and, AFAIK, it's not possible to redirect command window output to a figure other than b...

create a table next to a graph on figure

A table object can't be put in a figure and, AFAIK, it's not possible to redirect command window output to a figure other than b...

ongeveer een maand ago | 0

| accepted

Answered

loop through cell arrays and perform calculations using rows from another cell array

DATA={table(rand(4,3))}; DATA(2,1)={table(rand(4,3))}; To={table(randi(5,4,1))}; To(2,1)={table(randi(5,4,1))}; % preliminarie...

loop through cell arrays and perform calculations using rows from another cell array

DATA={table(rand(4,3))}; DATA(2,1)={table(rand(4,3))}; To={table(randi(5,4,1))}; To(2,1)={table(randi(5,4,1))}; % preliminarie...

ongeveer een maand ago | 0

Answered

How to make the average for columns in cvs folder contains (700 file) ?

Well, you've got to read the files somehow...show us what you have tried...here's the link to one way Mathworks suggests -- <im...

How to make the average for columns in cvs folder contains (700 file) ?

Well, you've got to read the files somehow...show us what you have tried...here's the link to one way Mathworks suggests -- <im...

ongeveer een maand ago | 0

Answered

First number that comes after a list of numbers

>> [A;interp1([-eps(1) B],[-eps(1) B],A,'next')].' ans = 1 4 8 9 20 25 >>

First number that comes after a list of numbers

>> [A;interp1([-eps(1) B],[-eps(1) B],A,'next')].' ans = 1 4 8 9 20 25 >>

ongeveer een maand ago | 0

| accepted

Answered

How to create an average of 2 lines on a single graph

OK, I see...the data are collected on a up- and down-slope symmetric ramp.. Try something like-- top=readmatrix('top_sensor_da...

How to create an average of 2 lines on a single graph

OK, I see...the data are collected on a up- and down-slope symmetric ramp.. Try something like-- top=readmatrix('top_sensor_da...

ongeveer een maand ago | 0

| accepted

Answered

Histogram plot isn't shown properly.

Can't change the characteristics of the image; any linear scaling of the axis will only change the numerical values, not the sh...

Histogram plot isn't shown properly.

Can't change the characteristics of the image; any linear scaling of the axis will only change the numerical values, not the sh...

ongeveer een maand ago | 0

| accepted

Answered

Averaging lots of columns at once and then combining them

"...I cannot figure out a way to take the average of each col[o]umn without manually inputing it. " Fs = 2048; ...

Averaging lots of columns at once and then combining them

"...I cannot figure out a way to take the average of each col[o]umn without manually inputing it. " Fs = 2048; ...

ongeveer een maand ago | 0

| accepted

Answered

unique command and external Excel files

Well, there is a duplicate in the 2nd column... >> d=xlsread('x.xlsx','Sheet2'); >> arrayfun(@(i)numel(unique(d(:,i)))==numel(...

unique command and external Excel files

Well, there is a duplicate in the 2nd column... >> d=xlsread('x.xlsx','Sheet2'); >> arrayfun(@(i)numel(unique(d(:,i)))==numel(...

ongeveer een maand ago | 0

| accepted