フィルターのクリア

How can I create a string with sprintf based on these data?

2 ビュー (過去 30 日間)
Reni Llupa
Reni Llupa 2017 年 12 月 1 日
回答済み: Walter Roberson 2017 年 12 月 1 日
The goal is to create a string which reads 'day, month, day(num), year' example: 'Sun, Nov 12, 2017' I will link what I have so far down below.
The months are given as a chart which I need to index, so say if the month is 1, the final string would read 'Jan'.
thats what i have so far but it keeps reading error. Thanks in advance.

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 12 月 1 日
m = m_name(mm, :);
And remember to put in the appropriate commans in formatSpec

カテゴリ

Help Center および File ExchangeString Parsing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by