Define statements to define the constants, C/C++ Programming

Assignment Help:

the problem description.

The order of the C Program should be as follows:

Variables and constants

  • Use #define statements to define the constants.
  • Use arrays to store the data, median values, median map and counts.

Read Data

  • Read each individual data item from the file using an appropriate method into a two dimensional array.
  • Close the file when finished.

Median

  • Calculate and store the median for each row and column.
  • Determine and store the values for the Median Map.
  • Calculate the counts for each row and column in the Median Map where the value is 1, 0 or -1.
  • Display the Median Map and counts.

 PART D - MATLAB

Using an appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description.

The order of the MatLab Program should be as follows:

Variables and constants

  • Use two dimensional arrays to store the data, medians and maps.

Read Data

  • Read each individual data item from the file using an appropriate method into a two dimensional array.
  • Close the file when finished.

Median

  • Calculate and store the median for each row and column for an unknown number of rows and columns.
  • Determine and store the values for the Median Map.
  • Calculate the counts for each row and column for the values 1, 0  and -1
  • Display the Median Map and counts.

Related Discussions:- Define statements to define the constants

Computer graphics, .Develop a two dimensional interactive game with the fol...

.Develop a two dimensional interactive game with the following features: 1. Use OpenGL (any version you find convenient) 2. The game can either be two player or one player with the

Define some features of external storage class in c program, Define some fe...

Define some features of external storage class in c program? The features of an external storage class variable are as follows: Storage - memory Default initial value -

Discuss polymorphism in c++, Problem 1. Discuss polymorphism in c++. ...

Problem 1. Discuss polymorphism in c++. Explaining Polymorphism 2. Write a program in c++ to read a 3X2 matrix and find smallest number in that matrix. Writin

How many levels deep can include files be nested, How many levels deep can ...

How many levels deep can include files be nested? - As such, there is no limit to number of levels of nested include files you can have however your compiler might run out of s

Non-maxima suppression, Use the program called harris-shell.c and add some ...

Use the program called harris-shell.c and add some code to find the corners in the image checkers.jpg. You should say that a pixel in the image is a corner if it passes the given t

Jewel polishing, Byteland county is very famous for luminous jewels. Lumino...

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Program to ask date & days added to produce -c++ program, THIS PROGRAM IS T...

THIS PROGRAM IS TO ASK A DATE & ALSO ASK FOR DAYS TO BE ADDED TO PRODUCE #include #include struct date  {   int dd;   int yy;   int mm;  }; void main()  {  clrscr();  in

Minimum total number of shelves, At a shop of marbles, packs of marbles are...

At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd