Re: convert outputs to string,help needed!
- From: Alex <cyberalexx2@xxxxxxxx>
- Date: Sun, 2 Oct 2005 16:15:51 -0400
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!
.
- References:
- convert outputs to string,help needed!
- From: Alex
- convert outputs to string,help needed!
- Prev by Date: Using Spline toolbox to estimate term structure of interest rates
- Next by Date: m-file to motorola hc12...
- Previous by thread: convert outputs to string,help needed!
- Next by thread: Re: Autocorrelation and the roots
- Index(es):
Relevant Pages
|