Define a structure for a rectangle with horizantal and vertical lengths. And write a function that takes the struct as parameter and return another struct with area and perimeter attributes whose values are calculated with respect to the given rectangle struct.
For example: (3,7) will be (21,20)
please solve this using matlab