Prev: uitable column width
Next: parsing a string
From: Miguel Sopena on 4 Dec 2009 11:38 Loren Shure <loren.shure(a)mathworks.com> wrote in message <MPG.2582d6062a5cfe04989a81(a)news.mathworks.com>... > In article <hf8qc4$21q$1(a)fred.mathworks.com>, m.sopena(a)sussex.ac.uk > says... > > Hi there, > > > > The following script runs OK in Matlab 7.1.0.246: > > > > syms p real > > f = exp(p) / ( exp(p) - 1)^2 ); > > res = double (int (f,0.0001,100) > > > > However, in Matlab 7.8.0 I get the error message above ('In an assignment A(;) = B, the number of elements in A and B must be the same') which it appears is caused by the second line. > > > > Can anybody help?? I get the same error message with more complicated scripts I'm trying to migrate from one version to another. > > > > Any help much appreciated- Thanks! > > > > M Sopena > > Sussex University > > > > I'm not sure why that's the error message you get, but both lines 2 and > 3 have unbalanced parentheses. Remove the final one on the second line > and add it to the 3rd, perhaps. Be sure that preserves your intention. > > -- > Loren > http://blogs.mathworks.com/loren Hi Loren, Thanks for your message- I made a mistake copying the script to my message but in the original the parentheses are balanced- Sorry about that! Again any input much appreciated- Looks like I may not be able to use Matlab's new version at my uni anyway because of a license problem but nonetheless... Thanks again, Miguel |