フィルターのクリア

Create function take the present data as argument

4 ビュー (過去 30 日間)
Huitian Mao
Huitian Mao 2017 年 5 月 23 日
回答済み: KSSV 2017 年 5 月 23 日
Hi, I have three excel file and need to create a function that take the citizen's social security number (SSN) as argument. The function must return the person's name, income and tax payed. I took screen shot of the three excel file. Any one can help with that? Appreciate so much. :)
  2 件のコメント
Stephen23
Stephen23 2017 年 5 月 23 日
@Huitian Mao: what exactly is your question? Are you unsure how to load the data into MATLAB, or how to write a function, or how to pass arguments, or ... ?
Did you start reading the documentation for loading data, or for how to write functions?
You should start be working through the introductory tutorials, which will give you lots of important skill for using and understanding MATLAB:
Guillaume
Guillaume 2017 年 5 月 23 日
So, what bit is causing you problem?

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

回答 (1 件)

KSSV
KSSV 2017 年 5 月 23 日
See this as an example and write for your case:
student = struct ;
student(1).name = 'Tom' ;
student(1).gender = 'm' ;
student(1).age = 15 ;
student(2).name = 'Dick' ;
student(2).gender = 'f' ;
student(2).age = 13 ;
student(3).name = 'Harry' ;
student(3).gender = 'm' ;
student(3).age = 10 ;
student(1)
student(2)
student(3)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by