how to reduce the length of a string

조회 수: 34 (최근 30일)
HARITHA Nambiar
HARITHA Nambiar 2018년 3월 12일
답변: KALYAN ACHARJYA 2018년 3월 12일
MATlab code for reducing the length of a string
  댓글 수: 1
Birdman
Birdman 2018년 3월 12일
What do you mean by reducing? What have you tried so far?

댓글을 달려면 로그인하십시오.

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 3월 12일
You can delete the characters from strings-
%Code: delete the last five character from strings, you can choose it another way also.
S='InputString.txt'
S=S(1:end-5)

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by