Info

This question is closed. Reopen it to edit or answer.

Piecing togethor an image with matlab

1 view (last 30 days)
rick wheeler
rick wheeler on 3 Apr 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
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
  1. * * • Load a database of foods
  2. * * • View, Add, Edit, Search, and Delete individual foods from that database
  3. * * • Load a database of meal descriptions
  4. * * • Load a database linking the meals to the foods
  5. * * • Create, edit, search, and delete meals from that database
  6. * * • 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.

Answers (0)

Community Treasure Hunt

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

Start Hunting!