Write a function that accepts a string cell array and classify sort in ascending order according to the alphanumeric order (this Implies that you should treat 'A' and 'a' as the same letter).

%% Program for alfanumerica clear all; clc; name = { } t = input('Enter the number of names you want:');
for i=1:t name{i} = input('Enter the name you want:','s');
end
name = lower(name); order = (name); %% Result of the function disp('The order described will be:'); disp(order); These are my codes, but I have a problem when I write some words. For example : 'Yasar and yasar ' and the program , it turns my letters like these form ' yasar yasar' but I want that program needs to order my letters ' Yasar yasar' in this form consider the big letter. Please can you help me ? Kind Regards

4 件のコメント

@yasar yanik: what exactly is your question?
Rik
Rik 2017 年 5 月 23 日
You can find guidelines for posting homework on this forum here.
We're not going to do your homework, but most of us will be happy to help you solve your problem.
Jan
Jan 2017 年 5 月 23 日
I do not even understand the question: Write a function in cell matrix?! What could be sorted, if only one String is provided as input?
Write a function that accepts a string cell array and classify sort in ascending order according to the alphanumeric order (this
Implies that you should treat 'A' and 'a' as the same letter).this is the question but I understand what you mean. I will copy here the codes what I did. Then maybe, you can help me..

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeShifting and Sorting Matrices についてさらに検索

質問済み:

2017 年 5 月 23 日

編集済み:

2017 年 5 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by