Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
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.

Réponse acceptée

John D'Errico
John D'Errico le 30 Sep 2023
What if you added them together? Maybe multiply one of them by 10 first? What would that do?

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by