y = a0 + y in matlab

Assuming y already has some value and you want to add a0 to it and store the result back in y, you can simply do:

main.m
y = y + a0;
12 chars
2 lines

Here, the previous value of y is added to a0 and the resulting sum is stored back in y.

main.m
0 chars
1 lines

related categories

gistlibby LogSnag