답변 있음 display while loop output as an array
function [output] = hailstone_sequence(n)
output=[n];
h = 1;
while(n~=1)
if n==1
return
elseif mod(n,2)
...
how to match daily returns ?
hello everyone, i have the dependent variable with daily returns y (1 column ), in the other hand daily returns for the independ...
9년 초과 전 | 답변 수: 1 | 0
1
답변
질문
swiching elements of same vector
hi everybody, i have vector
X=[ 20; 0; 0;0; 100; 0;0;0;50];
i would like to have
X=[0;0;0;0;20;0;0;0;100];
so ...
10년 초과 전 | 답변 수: 2 | 0
2
답변
질문
comparing numbers on the same vector
hi, i have vector
x=[1 ;5; 20; 10; 15 ;30];
i want to have
y=[1 ;1;1;0;0;1];
such that if the number is bigg...
10년 초과 전 | 답변 수: 2 | 0
2
답변
질문
compunding investment every month
hi, i have vector X=[ 0.35; 0.05; 0.06 ;0.07]
i want to have y=[100*1.35 ; 100*1.35*1.05 ; 100*1.35*1.05*1.06 ; 100*1.35*1.0...
10년 초과 전 | 답변 수: 2 | 0
2
답변
질문
how to minimize distance with optimization
hi all i am new member i did had some difficulties to express my point, here is the real problem: i did optimize moments at the...