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 4047456
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:41:34+00:00 2026-05-20T13:41:34+00:00

I have two figures of table. One table is call H and another one

  • 0

I have two figures of table.

One table is call H and another one call C. Both table is 4 by 3 table.

So if the user insert a value in two edit box. For example:

A = *value*
B = *value*

Then the user insert the data in H table. The user only use 2 rows. Let say this is the data:

      ALPHA   BETA   GAMMA
H1

H2

H3

H4

So the user want to get the subset of H1 and multiply with A and subsets of H2 multiply with B. This is how it will be:

C1 = (ALPHA VALUE)*A  (BETA VALUE)*A  (GAMMA VALUE)*A

C2 = (ALPHA VALUE)*B  (BETA VALUE)*B  (GAMMA VALUE)*B

Then the user wants to display the answer on C table where it will become like this:

            ALPHA        BETA       GAMMA
C1        NEW VALUE    NEW VALUE   NEW VALUE

C2        NEW VALUE    NEW VALUE   NEW VALUE

C3

C4

How can i make the coding of this problem?

I have already try this coding but it seems i failed. CAN ANYONE HELP ME PLEASE!!

H = cell2mat(get(handles.Mytable3,'Data'));
cost1 = str2num(get(handles.input2_editText,'String'));

cost2 = str2num(get(handles.input3_editText,'String'));

H1 = H(1,:)*cost1;
H2 = H(2,:)*cost2;
H = mat2cell([H1 H2]);
cost = get(H,'Data');
set(handles.Mytable2,'Data',cost)
  • 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-20T13:41:35+00:00Added an answer on May 20, 2026 at 1:41 pm

    Try:

    H = num2cell([H1 H2]);
    set(handles.Mytable2,'Data',H)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say that I have two figures in matplotlib, with one plot per figure: import
I have two strings both with value null . But when I am comparing
I have two databases - one for articles and the another for the articles'
I have two table functions that return a single column each. One function is
I currently have two models: Product and Service. Both share the same table structure
I have two tables with hierarchyid fields, one of which is a staging table
I have two tables, one called episodes, and one called score. The episode table
I have two tables user (one) and transaction (many) and I need to get
I have two mysql tables: Item containing items that one can buy: CREATE TABLE
I have two databases - one for articles and the another for the articles'

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.