How can I store values of variables in Excel after each iteration?
이전 댓글 표시
I have a row matrix X with enteries [1:n] n can 2 3 or any number. There is an another array F with entries equal to 'n'. These entries are inline functions and are evaluated at the entries stored in X. The output of entries in F are scalars i.e. after evaluation of F, F becomes a column matrix. The value of X and F are changing in a loop.I want to store the values of X(as a row matrix),F(as a row matrix) and counter(it keeps the count of iterations) in three separate columns e.g counter under A,X(as row vector) under B and F(as row vector) in C.Please suggest an efficient way to achieve this.Code for this would be greatly appreciated.
P.S. This code is for Newton's method for non-linear equations
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!