Réponse apportée
Odd behavior combining sprintf and fprintf?
Try fprintf(sprintf('%%%%\n')) In order to print a % with the fprintf command, you have give the function two %-characte...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Statistics toolbox predict new data non linear regression
They estimate a non-linear model that has three independent variables (input variables) and five coefficients. Then they predict...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Equation for non linear model
I have no idea why Matlab chose to use that equation. They don't explain. In some cases theory suggests the relationship between...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
syntax regression model variables
The variable modelfun is a function handle and it defines the nonlinear model. Perhaps you should read the Matlab documentation ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How to code MIDAS?
It seems that Matlab cannot not find your function. Type path in the command window and check if the folder that contai...

plus de 12 ans il y a | 0

Réponse apportée
Why am i getting this errors below? What does it mean?
The error means that bbox is empty. That is why you cannot acces bbox(3).

plus de 12 ans il y a | 0

Réponse apportée
how to get bloomberg option and zero coupon rate data?
Of course you don't get a price for an option. The field OPT_CHAIN does not request a price. It gives you a list with tickers of...

plus de 12 ans il y a | 0

Réponse apportée
matrix problem in vocoder
The first line says it all. You try to access the 14th column of a matrix that has only 13 columns. If the reason is a mistake i...

plus de 12 ans il y a | 0

Réponse apportée
Generate random variables with specified 2nd moment ?
The second moment is the same as the variance of the random numbers! >> x = randn(1,1000); >> var(x) ans = ...

plus de 12 ans il y a | 0

Réponse apportée
Problem with LinearModel varNames
The error message tells me that you have defined the names of the variables incorrectly. I assume that your code looks something...

plus de 12 ans il y a | 0

Réponse apportée
How to fit data to a second degree polynomial equation with 9 co-efficients
There is no unique solution for your equation. So you cannot estimate the coefficients. What you can do is estimating the fol...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Econometrics Toolbox output handling
[EstMdl1,EstParamCov2,logL(2)] = estimate(Mdl2,utl, 'Display', 'off');

plus de 12 ans il y a | 0

Réponse apportée
Econometrics Toolbox: estimate the probability of different time series predicitions
If you know the distribution of the returns you could calculate the probability. However, the probability of a path with 30 step...

plus de 12 ans il y a | 0

Réponse apportée
how to declare vector of size 64
You cannot just declare a vector of a certain size without giving the elements a certain value. A = zeros(64,1); B = one...

plus de 12 ans il y a | 1

Réponse apportée
Overlap between N circles
Construct a grid. Calculate for each point the distances to the circle centers. All points whose distances to the circle centers...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Why do I get the error “Dimensions of arrays being concatenated are not consistent.”?
This error is encountered when you try to vertically concatenate arrays that do not have compatible sizes. For example, to verti...

plus de 12 ans il y a | 2

| A accepté

Réponse apportée
I face the error of "Index exceeds matrix dimensions". but i want to show all the elements of z(n) and want to sum them and mean them. my program is given below, plz help me out?
In the second iteration the if-condition p{i} == [4;5] becomes true and terminates the loop. p{3} stays empty. In the second for...

plus de 12 ans il y a | 0

Réponse apportée
complicated for loop with 2 requirements or constraints
Then do the following: if m > 4 UT{m} = id(m-4:m-1,:) end

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
How to solve the following system of equations?
Two of the three equations are non-linear. You cannot solve these with some simple matrix operations. Take a pencil and a paper ...

plus de 12 ans il y a | 0

Réponse apportée
How to enter an equation with a summation?
V(i,j) = sum(log(D(i,:)./D(j,:))) / (2*pi*e)

plus de 12 ans il y a | 0

Réponse apportée
save values of variable
The variable *fittedmodel1* is a class. You cannot double-click on class variables and see what is inside. You have to use the w...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
complicated for loop with 2 requirements or constraints
In the second loop you first (when i = 0) save a matrix in result{m} and then you override it when (i = 1). So the inner loop ha...

plus de 12 ans il y a | 0

Réponse apportée
can I avoid for loop?
No, it is not possible to avoid the two loops.

plus de 12 ans il y a | 0

Réponse apportée
Legend in for loop of unknown number
First: your code is unreadable if you do not format it as code! Second: As some variables are missing I cannot run the code, ...

plus de 12 ans il y a | 0

Réponse apportée
How to get the output to a variable
constant = fit1.Constant; arch1 = fit1.ARCH{1}; garch1 = fit1.GARCH{1};

plus de 12 ans il y a | 1

Réponse apportée
text to column conversion
n = length(tags); tags_new = cell(n,2); for k = 1 : n tags_new(k,:) = strsplit(tags{k},' '); end

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
how to use White heteroskedasticity-consistent standard error estimators in OLS regression?
Yes, there is! The Matlab function is called *hac* .

plus de 12 ans il y a | 0

Réponse apportée
error when trying to export the data to excel - how can I fix this error?
Well, the error message tells you that you want to access a non-existing field in a struct. So the error has nothing to do with ...

plus de 12 ans il y a | 0

Réponse apportée
Why i am getting wrong value of abcd ?
You don't get the wrong values. sin(139) = 0.81, that is right, but that is not what your code calculates. It calculates sind(13...

plus de 12 ans il y a | 0

Charger plus