cell array to char array?

Illustration
raktim banerjee - 2023-04-28T11:33:06+00:00
Question: cell array to char array?

Hello Sir!   How to convert a cell array to char array? I want to read 2 strings from a .txt file and want them in char type. if I do as follow those are cell type. The file contains 2 strings in 1st line, separated by a single space.   [a,b] = textread('inp.txt','%s%s',1)  

Related Questions

  • cell array to char array?
  • Expert Answer

    Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

    >> a = {'9a','abc'}

    a =

    '9a' 'abc'

    >> char(a)

    ans =

    9a

    abc


    Not satisfied with the answer ?? ASK NOW

    Get a Free Consultation or a Sample Assignment Review!