i used the following code to make a nodelabel string vector that contains information of the node , the information are divided into 3 strings , i joined the string and i add newline between them but on the plot the strings are next to each other , the newline doesn't apeare unlease the first string have charcters , please check the attached photo:
I want all my nodes to apear like the right amrked one , not the wrong marked
and here is the code that i have used
strNodname=string(nameoflable);
strNodpower=string(poweroflable);
strNodeDP=string(connecteddp);
nodeslabletable=[strNodname,strNodpower,strNodeDP];
strnodeslabletable=join(nodeslabletable,newline,2)
h=plot(g,"EdgeLabel",edgelabletableinKM,"NodeLabel",strnodeslabletable,NodeLabelMode="manual",NodeFontName='Times New Roman' ...
,NodeFontAngle='italic',NodeFontWeight='bold',NodeFontSize=10)