解決済み


UICBioE240 2.2
Make a 3x4 matrix that contains all ones.

6ヶ月 前

解決済み


UICBioE240 problem 1.4
So if A = [ 1 2 3; 4 5 6; 7 8 9] B = [ 3 3]

6ヶ月 前

解決済み


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

6ヶ月 前

解決済み


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.

6ヶ月 前

解決済み


UICBioE240 problem 1.14
Solve 3^x = 17

6ヶ月 前

解決済み


UICBioE240 2.8
Convert x number of hours into seconds.

6ヶ月 前

解決済み


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

6ヶ月 前

解決済み


UICBioE240 2.3
Make a 4D matrix of 4x4x3x4 containing all zeros.

6ヶ月 前

解決済み


UICBioE240 problem 1.9
Swap the first and last columns of a matrix. So if A = [12 4 7; 5 1 4]; B = [7 4 12; 4 1 5]; ...

6ヶ月 前

解決済み


UICBioE240 2.7
Given two 3-element vectors x1 and x2, create a 3 x 3 x 3 matrix Y where (:,:,1) has all values of x1 * x2, (:,:,2) has all valu...

6ヶ月 前

解決済み


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

6ヶ月 前

解決済み


Queen's move
given a number of consecutive moves of queen, check for their validity based on their previous position.... but remember if u g...

6ヶ月 前

解決済み


Can the knight take out the pawn?
* position of knight = k * position of pawns = p can the knight take out those pawns? * k='Nf4' * p={'g6','g7'} then...

6ヶ月 前

解決済み


Max Change in Consecutive Elements
If an array is given as input then find the index of consecutive elements that represent maximum change. Example: Input ...

6ヶ月 前

解決済み


The Dark Knight
The current position of the knight is x The desired destination is y The size of the chessboard is n. Find the minimu...

6ヶ月 前

解決済み


Construct a string from letters and counts
Given two input arrays like this: [5,3,1] ['a','b','c'] Output a string that contains each letter the specified num...

6ヶ月 前

解決済み


Who is the baby and who is the daddy in this family?
Given an array of numbers that shows the characteristcs of all family members, find who is the baby and who is daddy in this fam...

6ヶ月 前

解決済み


Find offset of given matrix element from first matrix element
Given matrix m and an element of that matrix, return the offset from its first element. e.g. m=[11 2 34; 40 51 6; 87 8 109] el...

6ヶ月 前

解決済み


Complex transpose
Calculate the transpose of a matrix having complex numbers as its elements without changing the signs of the imaginary part. ...

6ヶ月 前

解決済み


execute the declaration in strings and return value
execute the commands in strings and return value input='a=23' output=23

6ヶ月 前

解決済み


interesting center of magic matrix
output the centre of magic matrix of n input=7; output=25

6ヶ月 前

解決済み


index of n^2 in magic(n)
input=5 magic matrix 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 ...

6ヶ月 前

解決済み


Distances in a circle
A circle (360°) is given and a row of 6 monotonic increasing numbers with the which difference from last to first value is les...

6ヶ月 前

解決済み


Replace pattern 0 1 0 and 1 0 1
Find and replace a pattern in a row of zeroes and ones. * Find 1 0 1 and replace it with 1 1 1 * Find 0 1 0 and replace it w...

6ヶ月 前

解決済み


Largest territory
Determine whose territory is largest. If there are multiple numbers tied for the largest territory, return the smallest number. ...

6ヶ月 前

解決済み


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

6ヶ月 前

解決済み


Calculate feeling temperature before climbing a mountain
I sometimes climb a mountain. As is well known, when the altitude becomes 100 (m) higher, the temperature lowers by 0.6 degrees...

6ヶ月 前

解決済み


Probability of red tulips (at both ends of a row)
I planted tulip bulbs in a row on my flower bed. I thought that I had planted white tulips all. However, later, it turned out t...

6ヶ月 前

解決済み


Average of odd values
Find the average of odd values in given a matrix. e.g x=[ 4 11 8 ; 9 2 7 ] y =( 11 + 9+ 7 ) / 3

6ヶ月 前

解決済み


Average of even-numbered columns
Given a vector, find the average of even-numbered columns. e.g x = [ 4 6 8 9 1 2 7 ] y = ( 6 + 9 + 2 ) / 3

6ヶ月 前

さらに読み込む