hi,(adsbygoogle = window.adsbygoogle || []).push({});

I'm ran into a problem while creating a Matlab GUI and I can't seem to find out why.

I'm trying to get multiple lines in one static text. I set the 'max' property on 12 and then wrote the following code to test:

that seems to work fine, but when I change A to for example 'this is a test', I get an error saying there's something wrong with my set instruction.Code (Text):

A='a';B='b';C='c';D='d';E='e';F='f';G='g';H='h';I='i';J='j';K='k';L='l';

set(handles.text1,'String',[A;B;C;D;E;F;G;H;I;J;K;L]);

I can't seem to be able to display more than one letter for each string.

Can anyone help me with this?

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab GUI: changing multiple lines static text

Loading...

Similar Threads - Matlab changing multiple | Date |
---|---|

Matlab -- how can i use a FOR loop if I have 2 variables changing | Oct 12, 2016 |

[Matlab] dynamic change in formatting crop not showing | Nov 11, 2014 |

Matlab - Change parameters of equation while plot displayed | Jun 16, 2014 |

MATLAB help for modelling with changing variables. | May 31, 2012 |

A convergence problem when i change a parameter in an algorithm wrote in MatLab | Apr 12, 2012 |

**Physics Forums - The Fusion of Science and Community**