Explanation:
In Matlab, we can create a function that constructs a row array countValues from 0 to 25, with elements incremented by a incrementValue, this can be done in two ways;
If the value of IncrementValue is hard-coded than it will only work for IncrementValue=5, on the other hand, if the value of IncrementValue is not hard-coded than we can call CreateArray() with different IncrementValue.
1. Increment Value is hard-coded
function countValues = createArray(IncrementValue)
IncrementValue = 5;
countValues = 0:IncrementValue:25;
disp(countValues)
end
Output:
CreateArray(5)
ans = 0 5 10 15 20 25
2. Increment Value is not hard-coded
function countValues = createArray(IncrementValue)
countValues = 0:IncrementValue:25;
disp(countValues)
end
Output:
CreateArray(5)
ans = 0 5 10 15 20 25
CreateArray(2)
ans = 0 2 4 6 8 10 12 14 16 18 20 22 24
CreateArray(10)
ans = 0 10 20
Answer:
35°c
Explanation:
Given data in question
heat = 35 kw
work = 35 kw
temperature = 35°c
To find out
temperature of the system after this process
Solution
we know that first law of thermodynamics is Law of Conservation of Energy
i.e energy can neither be created nor destroyed and it can be transferred from one form to another form
first law of thermodynamics is energy (∆E) is sum of heat (q) and work (w)
here we know
35 = 35 + m Cv ( T - t )
35-35 = m Cv ( T-t )
T = t
here T = final temperature
t = initial temperature
it show final temp is equal to initial temp
so we can say temp after process is 35°c
I believe number 4 I could be wrong but I think it’s 4
Love the image isn’t showing up. Try reposting it!