# Electronics Engineering

**
Solution Library **

#### MATLAB Codes for a Given Input

Question What is the output of the following MATLAB statements? x = [12:-2:0]; x = x/2; fprintf('v1 %0.1f v2 %0.0f v3 %0.1fn',x(1),x(length(x)),x(end)); Summary This question belongs to MATLAB software and discusses about MATLAB codes and you are asked to find wrong codes and fix it. Answer i ... Read More

Reads ( 280 )Price:
Original Price: |
Add to Cart |

#### MATLAB Codes to Find Values of given Equations

Question For the following, what are the values of A, B, and C after executing the if statement on the right with the given values of A and B? A=6; B=2; A=1;B=4; A=4;B=4; C = 0; if A < B C = A+B; elseif A <= B C = A ... Read More

Reads ( 256 )Price:
Original Price: |
Add to Cart |

#### MATLAB Code to Find Values of a Variable after Executing a MATLAB Statement

Question What is the value of y after executing the following MATLAB statements?? x = [9 3 6]; y = max(x) / length(x); Summary This question belongs to MATLAB software and discusses about MATLAB codes and you are asked to find wrong codes and fix it. Answer is in MATLAB format ... Read More

Reads ( 251 )Price:
Original Price: |
Add to Cart |

#### MATLAB Script to Evaluate a given Function Value

Question Given the following function, write a script that evaluates z with values of t, starting at --â€5 and ending at 5, in increments of 0.1, &nb ... Read More

Reads ( 266 )Price:
Original Price: |
Add to Cart |

#### FOR Loops in MATLAB to Determine Values

Question For the following for loop: x = [4 8 2.1 3 9 7 1]; c = 0; for k = 1:2:length(x)-2 if x(k) + x(k+1) > c c = x(k) + x(k+1); end end a) How many times does the for loop loop? b) What are the values that k takes on in the loop? Ie, first time through the for loop k is --â€, se ... Read More

Reads ( 253 )Price:
Original Price: |
Add to Cart |

#### Draw Output of a MATLAB Code on a Graph

Question Draw the output of the following MATLAB code on the graph on the right: r = 4; ts = 0:45:360; xs = r * cosd(ts); ys = r * sind(ts); plot( xs, ys, '+-k'); axis equal; & ... Read More

Reads ( 242 )Price:
Original Price: |
Add to Cart |

#### MATLAB Script Asks Users to Enter A Number Less than 3 or Greater than 10

Question Write a MATLAB script that keeps asking the user to enter a number until they enter a number less than 3 or greater than 10. Summary This question belongs to MATLAB software and discusses about to write a MATLAB script that keeps asking the user to enter a number until they enter a ... Read More

Reads ( 258 )Price:
Original Price: |
Add to Cart |

#### Plot MATLAB Code of a Defined Variable on a Graph Â

Question Plot t1 versus y1 and t2 versus y2 each in their own sub windows. Plot t1, y1 with a black line and no markers, and t2, y2 with green markers. % Plot code here. Make sure to clear the figure first. Assume the variables are already defined as above. Summary This question belongs to MATLA ... Read More

Reads ( 204 )Price:
Original Price: |
Add to Cart |

#### Plot the given Equations for Different Values Using MATLAB

Question Plot the following equation for 5 different values of n (1, 2, 3, 4, 5) with x in the range 0 to 5. Plot on five separate subplots. Use a for loop for full credit. & ... Read More

Reads ( 257 )Price:
Original Price: |
Add to Cart |

#### MATLAB Script gives Every Pair of Consecutive Numbers Where the 2nd Number is More Than Twice of the First

Question You are given an array x. Write a script that prints out every pair of consecutive numbers in x where the second number is more than twice that of the first (xk+1 > 2 * xk). Ie, if x were [ 2 10 3 7 15] then you would print out 2,10; 3,7; and 7,15. In addition to printing out the ... Read More

Reads ( 265 )Price:
Original Price: |
Add to Cart |

#### Solve Trigonometric Functions Using MATLAB

Question Consider the function, Approximate the first derivative of f(x = 4) using the first order accurate forward difference, second-orde ... Read More

Reads ( 355 )Price:
Original Price: |
Add to Cart |

#### Evaluate First Derivative of a Function Using MATLAB

Question Evaluate the first derivative of the following function, &nbs ... Read More

Reads ( 325 )Price:
Original Price: |
Add to Cart |