Student Support Forum: 'function of a matrix can't be plotted' topicStudent Support Forum > General > Archives > "function of a matrix can't be plotted"

 Next Comment > Help | Reply To Topic
 Author Comment/Response Nandan Joshi 04/27/06 4:36pm Hi: The particular function in numerical form experted as table and imported again in another function, whose square should be plotted. But the following code is giving the error. The extracted code is as following: With[{PiTable = Import["MyPiTemp.dat", "Table"]}, PiFunc[i_Integer, j_Integer] := PiTable[[i, j]]] With[{TauTable = Import["MyTauTemp.dat", "Table"]}, TauFunc[i_Integer, j_Integer] := TauTable[[i, j]]] \!\(\(S1[q_]\ := \ ∑\+\(l = 1\)\%\(LastTerm[r]\)\ \((\((2\ l + 1)\)\/\(l\ \((l + 1)\)\))\) \((an[l]\ \ PiFunc[l, \ q]\ + \ bn[l]\ \ TauFunc[l, \ q])\);\)\[IndentingNewLine] \!\(\(Iperp[q_?IntegerQ] := \ \((Abs[S1[q]])\)\^2;\)\) Plot[Iperp[q], {q, 1, 50}] and the errors are: Part::pspec: Part specification 1. is neither an integer nor a list of integers. More URL: ,

 Subject (listing for 'function of a matrix can't be plotted') Author Date Posted function of a matrix can't be plotted Nandan Joshi 04/27/06 4:36pm Re: function of a matrix can't be plotted yehuda ben-s... 05/01/06 07:52am Re: function of a matrix can't be plotted Nandan Joshi 05/02/06 2:46pm Re: function of a matrix can't be plotted yehuda ben-s... 05/04/06 06:01am Re: function of a matrix can't be plotted yehuda ben-s... 05/04/06 06:03am
 Next Comment > Help | Reply To Topic