matlab get the value of char

后端 未结 3 2076
面向向阳花
面向向阳花 2021-01-29 14:56

from MATLAB command line , when I type my variable a , it gives me values as expected :

a =


            value_1
            value_2

and I wou

3条回答
  •  攒了一身酷
    2021-01-29 15:18

    How are you reading in the xml file? If you're using xmlread then MatLab adds a lot of white space in there for you and could be the cause of your problems.

    http://www.mathworks.com/matlabcentral/fileexchange/28518-xml2struct

    This will put your xml file into a struct where you should be able to access the elements in the array.

提交回复
热议问题