Simple vector instructions. The following script should compute and display ten values of y=mx+b with x having integer values. Find the error in the script.
x = 0:10;
m = 3;
b = 1;
y = m*x+b
Solution
x = 0:9; % <- this gives 10 elements
m = 3;
b = 1;
y = m*x+b
Trades & Technology
You might also like to view...
GM's version of CAN is called ________.
Fill in the blank(s) with the appropriate word(s).
Trades & Technology
The accompanying figure shows the symbol for ____.
A. cut stone B. rock C. structural steel D. aluminum
Trades & Technology
Examples of nutraceuticals applied in dog foods are
A. Beet pulp B. Mussel extract C. Omega-3 fatty acids D. All of the above E. None of the above
Trades & Technology
The substance used to compare the specific gravity of gases is:
A) Nitrogen. B) Oxygen. C) Air. D) Helium.
Trades & Technology