フィルターのクリア

matrix dimensions are not equal

4 ビュー (過去 30 日間)
Jetty Rakesh Aditya
Jetty Rakesh Aditya 2020 年 10 月 19 日
コメント済み: KSSV 2020 年 10 月 19 日
how to make two cells (having strings as elements) of different dimensions equal?

回答 (1 件)

KSSV
KSSV 2020 年 10 月 19 日
Read about strcat. If str is your string of size 1*2...to append zero at tne end use:
iwant1 = strcat(str,'0') % option 1
iwant2 = [str,'0'] % option 2
  2 件のコメント
Jetty Rakesh Aditya
Jetty Rakesh Aditya 2020 年 10 月 19 日
i want to make two cells of different dimensions equal, i am sorry for wrongly mentioning it in the question
KSSV
KSSV 2020 年 10 月 19 日
You can use strcat for cells also.
str{1} = 'MA' ;
str{2} = 'LA' ;
iwant = strcat(str,'0')

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

カテゴリ

Help Center および File ExchangeWeather and Atmospheric Science についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by