Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 814411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:31:02+00:00 2026-05-15T01:31:02+00:00

I have tried to display the matrix values in edit controls the following way:

  • 0

I have tried to display the matrix values in edit controls the following way:

 LrOut = num2str(Lr(:, :, currentPosition));
    LqOut = num2str(Lq(:, :, currentPosition));
    set(handles.txtLr, 'String', LrOut);
    set(handles.txtLq, 'String', LqOut);

where txtLq and txtLr are edit controls:

alt text http://img534.imageshack.us/img534/2748/gui1e.jpg

When the code above is executed the controls disappear:
alt text http://img168.imageshack.us/img168/1910/gui2r.jpg

The Lq and Lr are m x n matrices where m and n are values from 1 to 8 and above so it would be useful if the values could be displayed in a scrollable edit control.

Does anyone know what could be the cause of the problem and how to modify the current code in order to display values correctly and enable scrolling when the size of text exceeds the control size?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T01:31:03+00:00Added an answer on May 15, 2026 at 1:31 am

    You have to set Max property of edit control to the number of lines.

    set(handles.txtLr, 'Max', size(Lr,1));
    set(handles.txtLq, 'Max', size(Lq,1));
    

    I would also recommend you to take a look at UITABLE control to display the matrix. You can update the data with

    set(handles.uitable1, 'Data', Lr(:, :, currentPosition))
    set(handles.uitable2, 'Data', Lq(:, :, currentPosition))
    

    Both will have slider on the right and on the bottom if data size exceed the control size.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried using the code below but it only display results in Chrome
I have tried <display:table name=jobTrackerCol pagesize=20 sort=list id=data requestURI= class=tablelist> <display:column title=Request Id sortable=true
I have tried &nbsp;&nbsp; to display two spaces in a standard output Java String.
I want to visualize a matrix based on the values its contain. I have
I have tried using display:block; and display:inline; to get my nav to align but
I have just tried to display the value of the variable but is showing
I have dynamically created an array of labels. however, when i tried to set
I have tried to program a inbox that display messages in the order they
Have tried to find solutions for this and can't really come up with anything.
I have tried to go through the jungle (really, PayPal, why don't you weed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.