How to set text(value of variables) on a static text field in multiple rows in MATLAB'S GUI?
-
when I set a value of a variable let say ' var1' in the field,it is displayed but if I want to display another value of a variable say ' var2' at 2nd row.It doesn't work.It sets the value on 1st row which results in replacing the value of ' var1'.resulting in displaying only one value of a variable at a time I am using set(handles.var1,'String',var1); var1 is the name of my variable and also the name of my text field
-
Answer:
I'm not sure if I quite understood, but try to separate your rows with char(10). Meaning that construct your two row string with like this: fulltext = ['first row' 10 'second row']. If you need better control of rows and cols, you should use tables. Also, if you are actually using lists, you can use cell arrays like this: fulltext = {'first row', 'second row'}
saadzebr... at Yahoo! Answers Visit the source
Related Q & A:
- How To Calculate The Value Of PI With A Program?Best solution by social.msdn.microsoft.com
- How to set null value product in last in sorting on product listing page?Best solution by magento.stackexchange.com
- How to set value in the dropdown from a JSON data list?Best solution by Stack Overflow
- How do I add to an array from a static method?Best solution by stackoverflow.com
- How do you text from a computer to a Sprint phone?Best solution by eHow old
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.