Cody
文字列の最初と最後の文字をつなげて返すような関数を作成しましょう。 もし文字が一つしかない場合、その文字は最初と最後の文字のため、関数はその文字を二回返すようにしておきましょう。
例:
stringfirstandlast('boring example') = 'be'
Trimming Spaces
1166 Solvers
Make a Palindrome Number
1137 Solvers
Sums with Excluded Digits
986 Solvers
Find common elements in matrix rows
810 Solvers
"mirror" matrix
328 Solvers
ベクトルの値が増加しているかを調べよう
89 Solvers
行列内の素数の平均をとろう
88 Solvers
特定の値がベクトル内に含まれているかを確認するコードを書こう
83 Solvers
英語の文章内の母音を取り除くコードを書きましょう。
80 Solvers
テレビのサイズを求めてみよう
73 Solvers
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office