Info
This question is closed. Reopen it to edit or answer.
Piecing togethor an image with matlab
1 view (last 30 days)
Show older comments
I am working on a code and I need help making a food data base. I am so far using
filename = uigetfile('*.dat', 'Find your excel file')
database = dlmread(filename, '\n')
to get the file and list it the problem is it will only list a file that contains numbers and i need it to pull information like this.... This is all listed also the preview makes it one paragraph form.
19
Food ID
Category
Description
Calories (kcal)
Calories from Fat (kcal)
Total Fat (g)
Saturated Fat (g)
Trans-fatty acids (g)
Cholesterol (mg)
Sodium (mg)
Carbohydrates (g)
Dietary Fiber (g)
Sugar (g)
Protein (g)
Vitamin A (%DV)
Vitamin C (%DV)
Calcium (%DV)
Iron (%DV)
Caffine (mg)
1.000000
1.000000
1.000000
1.000000
1.000000
1.000000
1.000000
1.000000
1.000000
1.000000
1.000000
1.000000
I need to make it so the user can
- * * • Load a database of foods
- * * • View, Add, Edit, Search, and Delete individual foods from that database
- * * • Load a database of meal descriptions
- * * • Load a database linking the meals to the foods
- * * • Create, edit, search, and delete meals from that database
- * * • Calculate/display the nutrition information about a meal the user selects
Any ideas on how to approach this because I am already having issues with it not being all numbers.
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!