필터 지우기
필터 지우기

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?

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by