Respondida
How do I assign rows of a matrix to an array?
B= num2cell(A(2:3,:))

más de 8 años hace | 1

Pregunta


plotting n paths of geometric brownian motion
hello, i wanna plot say 30 paths of gbm, my problem is how to plot those paths cause my matrix (X1) is 3 dimensions dt=...

más de 8 años hace | 1 respuesta | 0

1

respuesta

Respondida
how can i store a value of a calculation in a loop
try this put it just before end of the loop quantvalue=[]; quantvalue=[quantvalue quant];

más de 8 años hace | 0

Respondida
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) ...

más de 8 años hace | 0

Respondida
MATLAB import tool (Import as a string array)
hello this is simple you have to use importdata function change fichier by your fichier-title mydata = importdata('fichier....

más de 8 años hace | 0

Respondida
How can I use "OR" in this situation? I want it to show if x==2 or d~=0
if x==2 || d~=0 disp('Given value is a prime!') end

más de 8 años hace | 0

| aceptada

Pregunta


left outerjoin without changing initial order in the output
i want to make outerjoin in such way to have output C keeping the same order as the key variable, precisely my key variable is...

alrededor de 9 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 9 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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 ...

alrededor de 10 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

alrededor de 10 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

alrededor de 10 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

alrededor de 10 años hace | 1 respuesta | 0

1

respuesta