Top 10% contributor
why did u create a vector 1:0
Answered 2 years ago
My script is missing something. Perhaps I do not understand the meaning of 'while' or 'for' correctly. But here is my code:
Asked 2 years ago
After achieving the desired result the loop continues, how can i stop this?
if truefunction y = mysqrt(x,y0,tol)
% this fun...
Regardless of input, output the string 'yes'.
2 years ago
Find the sum of all the numbers of the input vector x.
Input x = [1 2 3 5]
Output y is 11
Input x ...
Try out this test problem first.
Given the variable x as your input, multiply it by two and put the result in y.
Given a and b, return the sum a+b in c.
In MATLAB, you create a vector by enclosing the elements in square brackets like so:
x = [1 2 3 4]
Commas are optional, s...
Hi i don't seem to understand why my while loop doesn't work for my function i've done everything in logical steps:
Asked 1 year ago
Join the conversation