Suppose that i am using a function ‘fun’ that computes a 3-dimensional vector. What i want is to create, using a for loop, a matrix having the vectors ‘fun’ computes each time as its rows.
thanks,
Nikos
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This depends on how many times are you going to be running the function ‘fun’? Let’s call that ‘n’.
I’m not sure if that totally answers your question but it should be enough to get you started.