フィルターのクリア

how do i use two varaibles with values of somewhere from 1 to 9 to make a 2 digit number

1 回表示 (過去 30 日間)
i have two variables that can be values from 1 to 9 and i need to string them together to make a two digit number. Lik eif my variables are digit_1 and digit_2, if digit_1 = 5 and digit_2 - 6 then I need a new variable number_2digit to be 56.

採用された回答

John D'Errico
John D'Errico 2023 年 9 月 30 日
What if you added them together? Maybe multiply one of them by 10 first? What would that do?
  1 件のコメント
Andrew
Andrew 2023 年 9 月 30 日
Cant believeI didnt think of that to be honest. That works great, thanks.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by