From: Jeff Krampf on 5 May 2010 00:28 > > If you wish to use a particular number of decimal places (e.g., suppose > you had reason to evaluate to 25 decimal places -- or reason that the > arithmetic should be done in 10 decimal places rather than floating > point), use vpa() > > If you wish to convert to Matlab double precision numbers, use double(). > > > and also, is there anyway to make it only display positive > > values since those are the ones I am interested in? > > That could be done at the symbolic level, but I would have to > cross-check the references to be sure I was telling you the correct way. > And it wouldn't be short or simple. > > So, what I suggest is that you use double() to convert the values and > store that in a Matlab array, and then use logical indexing to select > the ones you are interested in. For example, if the symbolic results > were in S, then: > > sd = double(S); > sd = sd(real(sd) > 0 & imag(sd) == 0); Ah perfect, thank you for all the help. That's more than I had hoped to accomplish at once. Thank you, I appreciate the assistance, Jeff
First
|
Prev
|
Pages: 1 2 3 Prev: export a cell of strings as a text file Next: Windows 7 Installation Problem |