Hello to everybody,

for sure you know the possibility to concatenate in matlab several array within a for-loop like follows:

t = linspace(1,0.1,10)

A = sin(t*2*pi)

B = [1 , 2 , 3]

C = []

for i=1:length(B)

var = A+B(i)

C = vercat(C,var) %This is the function I need!

end

How would you implement this function in HP VEE without using the Matlab-functions?

Thanks a lot for every Input.

Lukas

for sure you know the possibility to concatenate in matlab several array within a for-loop like follows:

t = linspace(1,0.1,10)

A = sin(t*2*pi)

B = [1 , 2 , 3]

C = []

for i=1:length(B)

var = A+B(i)

C = vercat(C,var) %This is the function I need!

end

How would you implement this function in HP VEE without using the Matlab-functions?

Thanks a lot for every Input.

Lukas

The only catch is that the variable C has to have at least one element in it already. What I'd do is set C = [0], then do the concat loop.

The first element of C is the dummy data that we started with, but the rest of C is the data you want, so do this to eliminate the dummy element:

D = C[1:totSize(C)-1]

-Bill