Re: convert outputs to string,help needed!



Alex wrote:
>
>
> Hi,
>
> i have many outputs (syms) from one function and these outputs i
> have to convert into strings.
>
> I convert them into ways:
>
> if my output are looks like this vector k=[1;2;3],contains only
> numbers, then
> i can use the function num2str(k)
>
> and if my vector contains variables ,for example
> k=[x1,2,y3] then i use the function k=char(k) and
> K=regexprep(k,{'[[\]()]','matrix',','},{'','','\n'})
>
> My question is how can i find out ,is there only numbers in my
> vector
> or not?
> I tried out the fuction isreal(k) and it works but i dont know why?
> Normaly i tworks only with conjugate complex numbers
> and hasnt react to the variables in the vectors?!
>
> Does somebody know how to convert every kind of vectors or matrix
> to
> strings without
> to test if it has numbers or variables in another way or my idea
> with
> char and num2str is the best?
>
> Thank you for your help
>
> Alex

isreal(k) doesnt work each time,only if 'k' a double array, i need a
new idea how can i test if my vector have numbers or varables!
.



Relevant Pages

  • Re: Doubles and Integers as strings.
    ... "Alex Blekhman" wrote: ... programmers as to the best to way to convert numbers into ... these strings to the console. ... produced and output to the console interspersed with text. ...
    (microsoft.public.vc.language)
  • Re: External HTML
    ... some strings - it will build an array and make them scroll vertically along ... website written by Alex to illustrate the principles of design, ... and implementation of a content-based website in ASP.NET. ... This website is a three-tiered solution (Presentation Layer, Business Layer, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: String Concatenation in VB.NET
    ... I second what Alex Says. ... If I've got to concatinate two small strings, ... If I'm building a large string in a loop, ... > string concatenation in VB.NET? ...
    (microsoft.public.dotnet.framework.performance)
  • Re: BigInt: C++ class for computation with arbitrary large integers
    ... > integers in strings? ... Alex Vinokur email: alex DOT vinokur AT gmail DOT com ...
    (sci.math.num-analysis)
  • Re: BigInt: C++ class for computation with arbitrary large integers
    ... > integers in strings? ... Alex Vinokur email: alex DOT vinokur AT gmail DOT com ...
    (sci.math)