I want to store two variables in an array or list in a loop to collect all my x an y, something like the append function in python, can anyone help me.

How are you wanting to arrange your x and y values? What you have done is correct if you want to create a list of x's and a list of y's whos values are 1 greater than the corresponding x.

Ah I think you want to do it in M-code. I think you could do this:

x = 0:1:n
y = 1:1:n+1
% where n would be as far as you would want to go. The syntax is in the form STARTINGNUMBER:INCREMENT:FINALNUMBER

I have two different functions which calculates the speed numerically, what I want to do is plot the difference between them against delta-x usinf Matlab

In Python:

N = [5,8,10,12]
deltax-list = []
speed-difference-list = []
for n in N:
dx = pi./(n-1)
deltax-list.append(dx)
s1 = function1(n)
s2 = function2(n)
s = abs(s1-s2)
speed-difference-list.append(s)

Is there an append function in Matlab or some other way to send values in to a list or array?

Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...

When I execute this progammatically, I get a table with row heights much larger than when I do this manually.

Note : Sel is the Word.Selection object and the Clipboard contains an Excel Table.

public void AddClipboard()
{
Sel.PasteExcelTable(false,false, false);
var t = Sel.Tables[Sel.Tables.Count];
t.AutoFitBehavior(Word.WdAutoFitBehavior.wdAutoFitContent);
}

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...