Answer:
Consider the following code.
Explanation:
save the following code in read_and_interp.m
function X = read_and_interp(s)
[m, n] = size(s);
X = zeros(m, 1);
for i = 1:m
if(str2num(s(i, 2:5)) == 9999)
% compute value based on previous and next entries in s array
% s(i, 2:5) retrieves columns 2-5 in ith row
X(i,1) = (str2num(s(i-1 ,2:5)) + str2num(s(i+1,2:5)))/2;
else
X(i,1) = str2num(s(i,2:5));
end
end
end
======================
Now you can use teh function as shown below
s = [ 'A' '0096' ; 'B' '0114' ; 'C' '9999' ; 'D' '0105' ; 'E' '0112' ];
read_and_interp(s)
output
ans =
96.000
114.000
109.500
105.000
112.000
Answer:
Answer is b. 10
Explanation:
The find() method is used to search the string for a specified value and searches the first occurrence of that value. It returns the position of that specified value. If the value is not found, this method returns -1.
Lets say we have a message variable that contains the string Happy holidays.
message = "Happy holidays"
We use the method find() to find days word from the Happy holidays string in the message variable.
The find() method will find the position of day.
If we look at the string Happy holidays we see that the word day is at the 10th position of the string.
H 1
a 2
p 3
p 4
y 5
h 6
o 7
l 8
i 9
d 10
a 11
y 12
s 13
So it is at 10th position so the statement
message.find("days")
returns 10
C) fair use
Hope this helps... mark as Brainliest plz
Answer:
name = re.search(r"^([\w \.-]), ([\w \.-])$", list_name)
Explanation:
Regular expression is used to simplify the mode in which items in a data structure are for. It uses wildcards as shortcuts.
The python module for regular expression is 're'. The import statement is used to get the module and the search() method of the module is used to get the one matching item while the findall() method is used to get a list of all the matching items in a data structure.
16
is a built-in mathematical formula included in MS Excel,
A) Function