Suppose that x is a vector that allready exists

Assignment Help Computer Engineering
Reference no: EM1333171

Simple matlab questions need solved, given step by step answers as how the code flows, works, etc to get the answers.

Which is the correct matlab logical expression to check whether the value of x is between -10 and 10 (inclusive)?

a) -10 <= x <=10
b) -10<= x, X <= 10
c) x>=-10 & X<=10
d) x>=-10| x<=10
e) none

Assuming that x is a vector that allready exists, what is the value of y after the following code is executed?

y = x(1);
for k=2:length(x)
if x(k) >y
y=x(k);
end
end

a) the last element in x
b) the first elemtn in x
c) the max element in x
d) the min element in x
e) none

add one or two statements to complete the following code that implements question 12 using vectors instead of a loop.

x=1.5;
N=50;
k=[0:2:100];

Which of the following is the corect code to determine y=1 + 1/x+1/x^2+1/x^3..+1/x^N until the last term is less than 10^-8, using x=1.5

and is c) but why?? x=1.5; k=0; y=o; term=1/(x^k); while term >= 1e-8; y=y+term

Reference no: EM1333171

Questions Cloud

Computation of value of ibm : Examine the structure and activities in your reference organization and identify two projects or events that required an investment. One should be current and the other non-current.
Incremental cost of buying the containers : Should Curtis make or buy the containers? What is the incremental cost (benefit) of buying the containers as opposed to making them?
The primary period had been compound growth rate : The primary period had been 10 years, what would the compound growth rate have been then. What would you expect the sales to be after 16 more years.
Personal relationship with the employees : We have learned that employees want to feel valued and valuable and We have also learned that salary and benefits can only go so far. Each manager needs to have a personal relationship with the employees.
Suppose that x is a vector that allready exists : Which is the right matlab logical expression to check whether the value of x is between -10 and 10 (inclusive).
Computing rate of return-capm : CAPM and required return: Calculate the required rate of return for Manning Enterprises, assuming that investors expect a 3.5 percent rate of inflation in the future.
Research in operation management about general electric : Research in operation management about General Electric Company and discuss about history of the company and operation/process design.
Explain sources needed for literature study : Explain Sources needed for literature study and Any information might be complimentary to the little bit
Illustrate what is the current expected price of the stock : Illustrate what is the current expected price of the stock. What is the expected price of the stock at Year 6.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Network design will support dial-up

Justify whether or not your network design will support dial-up or VPN remote access using descriptions of the following aspects: the advantages and disadvantages of the remote access solution, network protocols that will be used on your network, ..

  What is the throughput

Measurements of the slotted ALOHA channel with an infinite number of users show that 10 percent of the slots are idle.

  How to designed to implement the date in a program

The class Date was built to implement the date in a program, but the method setDate and the constructor with parameters do not check whether the date is valid before storing the date in the data members.

  How to explain capacity of the queue

How to explain capacity of the queue

  Studying about the network attack

Describe how a network attacker (an active attacker that can intercept or forge network packets, etc.) could steal secure google.com cookies.

  Benefits and negative effects by workplace automation

State at least three advantages and three negative effects brought about by the workplace automation. A multinational corporation transfers a foreign employee to United States on an L-1 visa. The foreign employee is a computer programmer, working ..

  Make function that outputs the elements stored in the tree

Write down a program containing a function that outputs the elements stored in the tree (integers) to the screen. The integers have to be output level by level in the order they appear in the tree.

  Make functionwill add one to each element in array of size

Write down the following C++ routines using pointers only. Do not use any [] 's in your code.

  Implementing the soubly linked list adt

Develop, implement, and test the soubly linked list ADT, utilizing the DLLNode objects as the nodes. Additionally to our standard list operations, your class must offer for backward iteration through the list.

  Recoginizing the error in given code

Identify the problem in the above code, If ( toupper( response[ 0 ] ) == 'Y' )

  Create simple program to demonstrate using stream i/o

Most stream I/O uses sequential access processes, but it is possible to use stream I/O for random access. The RandomAccessFile class in java.io implements random access files.

  Write down an sql statement

Write down an SQL statement

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd