필터 지우기
필터 지우기

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 CenterFile Exchange에서 Weather and Atmospheric Science에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by