Resuelto


Complex number
For complex number c=a+bi, write code that will add a and b together.

más de 9 años hace

Resuelto


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

más de 9 años hace

Resuelto


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 +...

más de 9 años hace

Resuelto


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...

más de 9 años hace

Resuelto


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

más de 9 años hace

Resuelto


Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

más de 9 años hace

Resuelto


Replacing a row
For matrix G=[1 2 3; 4 5 6; 7 8 9] Replace the 2nd row with 8s **remember to create matrix G

más de 9 años hace

Resuelto


Change input vector
If a input vector is [3, 2, 6, 1, 6], the output vector is [3, 2, 6, 1, 6] + [1, 2, 3, 4, 5] = [4, 4, 9, 5, 11].

más de 9 años hace

Resuelto


y=x
y=x

más de 9 años hace

Resuelto


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 ...

más de 9 años hace

Resuelto


find a number (cheat)
find a number input^5 = input the out put should be the number. try cheating

más de 9 años hace

Resuelto


cheating technique1
in these cody problems, there is a way to cheat. find out how people cheat.

más de 9 años hace

Resuelto


Joules!
1J = 101.325 L/atm Write a statement that assigns fractionalMultiplier with 101.325 Write a second statement that assigns Jo...

más de 9 años hace

Resuelto


'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...

más de 9 años hace

Resuelto


'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!

más de 9 años hace

Resuelto


multiply 2 by 2
multiply 2 by 2

más de 9 años hace

Resuelto


ASCii Code
Using Matlab get the ASCii for '?'

más de 9 años hace

Resuelto


UICBioE240 problem 1.15
Calculate: sin(pi/6) cos (pi) tan(pi/2)

más de 9 años hace

Resuelto


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...

más de 9 años hace

Resuelto


UICBioE240 problem 1.2
Convert a column vector into a row vector. So if A = [1; 2; 3] Then B = [ 1 2 3]

más de 9 años hace

Resuelto


UICBioE240 problem 1.14
Solve 3^x = 17

más de 9 años hace

Resuelto


UICBioE240 problem 1.3
Find the length of a vector. So if A = [1 1 1 1 1] Then B = 5

más de 9 años hace

Resuelto


UICBioE240 2.1
This will be useful later in the course, in conjunction to clc and clear all, what is the command to close all figure windows th...

más de 9 años hace

Resuelto


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.

más de 9 años hace

Resuelto


UICBioE240 problem 1.6
Find the tangent line of a right triangle given the two of the sides. So if A = [1 1] B = sqrt(2)

más de 9 años hace

Resuelto


UICBioE240 problem 1.16
sin^2(pi/6) + cos^2(pi/6)

más de 9 años hace

Resuelto


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!

más de 9 años hace

Resuelto


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...

más de 9 años hace

Resuelto


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 ...

más de 9 años hace

Resuelto


find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

más de 9 años hace

Cargar más