Hey all, I've got a little question, Hoping I can make myself clear.
I'm building a 'For' function X times (Inside a while loop) in order to sum it all up to a matrix (every 'for' loop is one row in the matrix).
The problem - Everytime It's running the 'for' function, it's deleting the previous for function it created (It's quite obvious, cuz i'm using the same variable).
Is there any function to store every run of the 'for' function in a new variable in order to sum it all up in the end ?
Hopes it's clear.
There's the code I created , It's working fine, but not storing every input like I stated before (the code is without your addons):
Can you be more specific ?Code:c = input('Please enter number of columns in Matrix: '); d = input('Please enter number of rows in Matrix: '); e=d; while (e > 0) e=e-1; for b = 1:1:c a(b) = input('Enter a number for the matrix: '); end end
Thank you very very very much!