I have a text file which consists of different combinations of characters. For example:
a+b*c
b+c*a
c+a*b
I want to read this file into matlab, and want to assign each line to an array like this:
c(1)=a+b*c
c(2)=b+c*a
c(3)=c+a*b
Further, I would like to assign other character arrays to the variables a,b,c etc. For example, I can assign as
a='A', b='B', c='C'
and print the final outputs as:
c(3)=C+A*B
But I am stuck at both the steps, as to how to read and assign the different lines to different character arrays in Matlab. Any suggestions are welcome.
c(3)=C+A*Bor as a string like this ? -c(3)='C+A*B'