Re: Is there a way to trim text in Matlab?
- From: OA <oakcin@xxxxxxxxxxxxxxx>
- Date: Tue, 9 Aug 2005 16:20:59 -0400
PB wrote:
>
>
> OA wrote:
>>
>>
>> Could anyone tell me if there is a function which would allow
one
>> to
>> take part of a string somehow.
>>
>> For instance, let's say I have:
>>
>> a = 'redcar'
>>
>> and I'd like b to be 'red', is there something like:
>>
>> b=left(a,3)
>>
>> in Matlab or some similar function which would allow me to do
> this?
>
> One ML way is to use indexing:
>
> b=a(1:3)
> c=a(4:end)
>
> HTH
>
> PB
Thank you very much. That's exactly what i was looking for.
-OA
.
- Follow-Ups:
- Re: Is there a way to trim text in Matlab?
- From: Tiago Marques
- Re: Is there a way to trim text in Matlab?
- References:
- Prev by Date: Re: help reading in data, please
- Next by Date: Re: s-function builder hangs
- Previous by thread: Re: Is there a way to trim text in Matlab?
- Next by thread: Re: Is there a way to trim text in Matlab?
- Index(es):
Relevant Pages
|