解決済み


If
If a more than zero, then b = true.

3ヶ月 前

解決済み


Pass the Threshold!!
Write a Matlab function that will take as input a matrix of arbitrary dimensions and a scalar threshold value, and return a vec...

3ヶ月 前

解決済み


UICBioE240 problem 1.13
Compute the following - y = x^5/(x^-1) and y = (1-(1/x^5))^-1. Have the final answer of y to equal a 1 by 2 vector.

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


Duplicate each element of a vector.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

3ヶ月 前

解決済み


Multiply pi
Multiply pi with x!

3ヶ月 前

解決済み


Divide pi
Divide pi by x!

3ヶ月 前

解決済み


Build the Well
Calculate the total time taken for building 'n' wells given : Worker A takes a hr to build the well alone Worker B takes b hr...

3ヶ月 前

解決済み


Bag of apples
find probabilty of getting red apples from a bag of 'r' red and 'g' green apples.

3ヶ月 前

解決済み


How many offices does MathWorks have in the UK
Please write a function that returns the number of offices MathWorks has in the UK.

3ヶ月 前

解決済み


Back to basics 15 - Benchmark
Covering some basic topics I haven't seen elsewhere on Cody. Return an array of the benchmark values for MATLAB.

3ヶ月 前

解決済み


Pluralization
Define function plu(n) that returns '' (an empty string) if n=1, or 's' otherwise. This is handy for displaying messages from a...

3ヶ月 前

解決済み


Energy Conversion 1

3ヶ月 前

解決済み


Find the max element of the array
Find the max element of the array

3ヶ月 前

解決済み


Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

3ヶ月 前

解決済み


Make a 1 hot vector
Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1. Example: Input ...

3ヶ月 前

解決済み


Product of Array
Given an array of numbers. Get the product of the array.

3ヶ月 前

解決済み


Multiply a column by a row
* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

3ヶ月 前

解決済み


Let's make puddings !
We will make puddings with eggs, milk and sugar. To make one pudding, we need one egg, 140(cc) of milk, 15 (g) of sugar. Now W...

3ヶ月 前

解決済み


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

3ヶ月 前

解決済み


Sum of diagonals elements of a matrix
Given a matrix, return the sum of all the elements across the diagonals. E.g. A = [1 2 3; 4 5 6; 7 8 9;...

3ヶ月 前

解決済み


Make an awesome ramp for a tiny motorcycle stuntman
Okay, given a vector, say v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 3 6 9 11 0; 6 9 ...

3ヶ月 前

解決済み


Test for balanced parentheses
Given the input inStr, give the boolean output out indicating whether all the parentheses are balanced. Examples: * If ...

3ヶ月 前

解決済み


Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

3ヶ月 前

解決済み


Solve the equation. Find X.

3ヶ月 前

解決済み


Laws of motion 1

3ヶ月 前

解決済み


Total energy

3ヶ月 前

解決済み


Sum of series II
What is the sum of the following sequence: Σ(2k-1)^2 for k=1...n for different n?

3ヶ月 前

さらに読み込む