Use the collections of polygons (file 'filePolygon Collection.mat') to fill the structure array. Write a script to iterate through the cell array "polygonCollection to extract the necessary data for the structure array. Use • random colors (created by the rand() function) "Polygon No” + cell number for the plot_title • min() and max() functions for the range fields
function importfile(fileToRead1) %IMPORTFILE(FILETOREAD1) % Imports data from the specified file % FILETOREAD1: file to read % Import the file newDatal = load('-mat', fileToRead1); % Create new variables in the base workspace from those fields. vars = fieldnames (newDatal); for i = 1: length(vars) assignin('base', vars{i}, newData1. (vars{i})); end
Use the collections of polygons (file ‘filePolygonCollection.mat') to fill the structure array. Write a script to iterate through the cell array "polygonCollection' to extract the necessary data for the structure array. Use • random colors (created by the rand() function) "Polygon No” + cell number for the plot_title • min() and max() functions for the range fields
Use the collections of polygons (file 'filePolygon Collection.mat') to fill the structure array. Write a script to itera
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Use the collections of polygons (file 'filePolygon Collection.mat') to fill the structure array. Write a script to itera
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!