MATLAB code to find the frequency of each element in some alloys

1 回表示 (過去 30 日間)
Majid Vaghari
Majid Vaghari 2020 年 9 月 7 日
コメント済み: Majid Vaghari 2020 年 9 月 7 日
I need a MATLAB code to find the frequency of each element in some alloys that are the input file:
The input:
The output:
Best
M. Vaghari
  3 件のコメント
John D'Errico
John D'Errico 2020 年 9 月 7 日
Since this is likely homework, what have you tried? If nothing, why not? In that case, you just need to start learning MATLAB. So make an effort. Show you are trying, and what you tried. You will likely gain some help then.
Majid Vaghari
Majid Vaghari 2020 年 9 月 7 日
Dear John D'Errico,
It's not a homework. I make this table to be clear about what i wanted.
I'm working on High Entropy alloys and in many of reserach papers we have the name of lots of alloys. I need to import list of alloys and elements of each compositon into matlab where i developed a m-file to calculate some properties but i don't know hwo to do that so I asked here.
Best

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

採用された回答

Rik
Rik 2020 年 9 月 7 日
You can you the histogram related function histcounts to count occurences. You just need to split the alloy name in the constituent elements, which should be easy, because each upper case letter is a new element. The best tool to use is probably regexp with the split option.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLarge Files and Big Data についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by