Matlab Basics - Pick out parts of a vector
Consider x a vector of length >= 7 (there are at least 7 elements in the vector, write a script that extracts the 2nd element, a...
5ヶ月 前
解決済み
Cannon Ball
Given g (acceleration due to gravity) and desired altitude x, find the minimum ground velocity of a cannon ball to reach x.
Tabuada
Dado um inteiro N, retorne um vetor contendo a tabuada de N de 1 a 10;
ex:
Tabuada(5) = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50...
5ヶ月 前
解決済み
Simple String Concatenation
This is a simple problem involving taking two incoming strings, and outputting the concatenated string with a space separating t...
5ヶ月 前
解決済み
Which one is More bigger?
we have two input like (x,y) our output (z) must wich one is bigger input.
5ヶ月 前
解決済み
Find S-parameters of the circuit
Refer to <http://en.wikipedia.org/wiki/Scattering_parameters> for the information about the system of scattering parameters.
...
5ヶ月 前
解決済み
multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y.
Examples:
Input x = 2
Output y is ...
5ヶ月 前
解決済み
Max of a Vector
Write a function to return the max of a vector
UICBioE240 problem 1.18
exp(pi/5*i) and exp(pi/5i). Is there any difference in result? Write yes or no as a string.
5ヶ月 前
解決済み
Find the minimal value in N*N Matrix
Suppose that we have N by N matrix, we try to find the minimal value in that matrix.
examples:
Input A=[1 2 3 5 6;52 58 56 45...
5ヶ月 前
解決済み
Calculate the values of a polynomial.
Calculate the values of a polynomial.Input parameter p - vector of polynomial coefficients, x - matrix of the argument values.
...
Accessing values in a cell
You are given c, which is a 1xN cell array, and a and b, which are each two 1xM vectors. Your job is to give the bth value in t...
5ヶ月 前
解決済み
UICBioE240 problem 1.8
Given a list of grades in a class, write a script that gives the 2nd highest grade in the class and the average for the class.
...
5ヶ月 前
解決済み
Beginner's Problem - Squaring
Try out this test problem first.
Given the variable x as your input, square it by two and put the result in y.
Examples:
...
5ヶ月 前
解決済み
currency converter
given a rate of exchange calculate the equivalent units of 100 USD