Question

How to save all results at some point in the script and run next time based on those results?

I mean I don't need to change the first half of my code. Every time running the script I only change some lines in the last part...

2 years ago | 1 answer | 0

Question

How could I find significant coefficients?

Say I did hundreds of regressions based on grouped data from one table, and then got 100 rows of Coefficients C = (alpha0; alpha...

2 years ago | 0 answers | 0

Question

how to delete rows with some repeated elements?

for example I need to delete one out of two rows whose numbers in column 1&2 are the same. At the same time the deleted row shou...

2 years ago | 1 answer | 0

Question

How to use if command？

Say I have a table X = (columnA, columnB, columnC) What is wrong with the following command? The result is always columnB = colu...

2 years ago | 1 answer | 0

Question

Plotting in groups by two variables?

1.How should I plot strike_price to mid_value grouped by date and by maturity? i.e. I would like to get 4 plots with label "date...

2 years ago | 0 answers | 0

Question

Transform a cell of arrays to a table?

How could I get B from A? Thanks!!! The cell2table command couldn't because the element in A is {[1;2;3]}, instead of {[...

2 years ago | 1 answer | 0

Question

How to extract rows by date?

say I have a table A 18-Dec-2015 42.3000 29.9000 7.3000 18-Dec-2015 37.3000 30.1000 13.4000 18-Dec-2015 39...

2 years ago | 2 answers | 0

Question

How to merge two tables when the key variables are not common?

I have two tables A and B with key variables. Most variables are the same. A = [X,Y,K; 100,200,1; 300,400,2; ...

2 years ago | 1 answer | 0

Answered

How to fit a quadratic function using the "minimizing the volume-weighted mean squared error"?

Thanks you two! I made some silly comments but learned a lot. :)

How to fit a quadratic function using the "minimizing the volume-weighted mean squared error"?

Thanks you two! I made some silly comments but learned a lot. :)

2 years ago | 0

Question

How to fit a quadratic function using the "minimizing the volume-weighted mean squared error"?

Say I have a function *y = a + b*x + c*x.^2* and I got matrixes *x and y*, and the weight *w*. Estimate the parameters ( ...

2 years ago | 2 answers | 0