Question: Please help me to solve this. It should be programmed in MATLAB. Read a column of numbers and interpolate missing data Problem Description Given an

Please help me to solve this. It should be programmed in MATLAB.
Read a column of numbers and interpolate missing data Problem Description Given an input array of strings (characters) s, pick out the second column of data and convert it into a column vector of data. Missing data will be indicated by the number 9999. If you encounter missing data, you should set it to the average of the immediately neighboring values. (This is a bit simpler tharn using interp1'.) If the input array is B' '0114; "C "9999" ; D 0105'; E '0112' ]; then the output variablet is the following column vector. t = [96 114 109.5 105 112]'; Compose a function read_and_interp which accepts an array in the above format and returns the data converted as specified. You may find the conversion functionstr2num to be useful. Solution MATLAB Documentation 1 function [ t ] -read and interp( s) 2 t=1; 3 end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
