Evaluating a polynomial
Given the following polynomial and the value for x, determine y.
y = 3x^5 – x^3 + 8x – 3
Example
x = 1
y = 3 - 1 +...
9年以上 前
解決済み
Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix
Grades=[98 56 34 100 88 87]
**re...
9年以上 前
解決済み
Counting down
Create a vector that counts from 450 to 200 in increments of 10.
Change on Spiral Matrix
n>=3, generate a matrix of nth such that n^2 is the max number, and max number must be in [1,1] or [end, end]. One example will ...
9年以上 前
解決済み
find a number (cheat)
find a number input^5 = input
the out put should be the number. try cheating
9年以上 前
解決済み
cheating technique1
in these cody problems, there is a way to cheat.
find out how people cheat.
9年以上 前
解決済み
Joules!
1J = 101.325 L/atm
Write a statement that assigns fractionalMultiplier with 101.325
Write a second statement that assigns Jo...
9年以上 前
解決済み
'Price of pizza!'
If you want to check pizza's price, try this!
price is proportional to its volume, so
you have to multiply 0.1($) to pizza's v...
9年以上 前
解決済み
'Repeat!'
if matrix x=[1 2;3 4]
y should be [1 2 1 2; 3 4 3 4; 1 2 1 2; 3 4 3 4;............],repeat n times!
try this!
Matlab Basics II - Free Fall
An object freely falling from rest under gravity covers a distance x given by:
x = 1/2 gt^2
write a function that calculat...
9年以上 前
解決済み
UICBioE240 problem 1.2
Convert a column vector into a row vector.
So if A = [1;
2;
3]
Then B = [ 1 2 3]
Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*!
And I'm talking about a unicorn with not more than one horn on it!
9年以上 前
解決済み
Back to basics 21 - Matrix replicating
Covering some basic topics I haven't seen elsewhere on Cody.
Given an input matrix, generate an output matrix that consists o...
9年以上 前
解決済み
Sum function: Counting cookies
Row array troopCookieSales contains the number of boxes of cookies sold by each troop member. Assign totalSales with the sum of ...