Solved

Calculate area of sector

A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

más de 5 años ago

Solved

Use R2016b Text Manipulations to Fix These Addresses (Part 1)

We have a series of addresses like the following which we'd like to reformat. Can you remove the latitude and longitude from the...

más de 5 años ago

Solved

Use R2016b Text Manipulations to Fix These Addresses (Part 3)

We have a series of addresses like the following which we'd like to reformat. Each of the addresses lacks a space and a comma ...

más de 5 años ago

Solved

Combine the first and last names

MATLAB R2016 provides a rich set of functions to work with string arrays. In this problem, you will be given two string arrays o...

más de 5 años ago

Solved

Use R2016b Text Manipulations to Fix These Addresses (Part 2)

We have a series of addresses like the following which we'd like to reformat. All the addresses are in the Boston area of Mass...

más de 5 años ago

Solved

Quantization Level

Given an 3-bit Quantizer ranging from 0-5 Volts, Determine the number of quantization level.

más de 5 años ago

Solved

Change matrix to vector

Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

más de 5 años ago

Solved

String Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values

<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

más de 5 años ago

Solved

String Array Basics, Part 3: Convert Cell Array with Missing Values to String Array

<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

más de 5 años ago

Solved

String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values

<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

más de 5 años ago

Solved

Rotate matrix by -90 degrees

Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

más de 5 años ago

Solved

Get 1-4-3-4-4

Get the value of the indices in the title and assign it to an array

más de 5 años ago

Solved

Words Count: A String Array Approach

Given an input character vector consisting of words, punctuation marks, white spaces, and possibly newline characters (\n), arra...

más de 5 años ago

Solved

Words Count: A Cell Array Approach

Given an input character vector consisting of words, punctuation marks, white spaces, and possibly newline characters (\n), arra...

más de 5 años ago

Solved

When Was That Goal Scored?

We want to find out when the goals were scored in a particular soccer game. For each game, we are given a "Goal Event Data" XML ...

más de 5 años ago

Solved

surrounded centroid

create a [n*n] matrix. n must be odd number. its centroid is n which is surrounded by n-1. example: surround(5)= 1 2 ...

más de 5 años ago

Solved

Basic commands - Least common multiple

Make a function which will return least common multiple of "a" and "b" Example: a=8; b=6; y=24;

más de 5 años ago

Solved

Basic commands - amount of inputs

Make a function, which will return amount of given inputs Example: amountinput(1,2,4,3,10) -> 5 , because we gave functio...

más de 5 años ago

Solved

cross in array

Make a cross from "1" in odd size array. Other value from array should be equal to "0"; As input you get length of side of arra...

más de 5 años ago

Solved

Basic commands - rounding

make a function which will round to integer, which is nearer to zero. Example x=[-2.5 2]; y=[-2 2];

más de 5 años ago

Solved

Basics - not so easy division

Please make a function whcih divides x/y, but pay attention for some exceptions with NaN,0,Inf. Sometimes return "ERROR" instead...

más de 5 años ago

Solved

Basic commands - Greatest common divisor

Please write a function, which, will put as output greatest common divisor. Example: A = [-5 17; 10 0];...

más de 5 años ago

Solved

Which coins to give

I was in shop today. I admired, how shop assistant had to think, which coins to give me. The task is we have a vector v=[0.5 0....

más de 5 años ago

Solved

Number of cyles and fixed points in a permutation

A permutation can be constructed from one or more sets of elements in cyclic order. A permutation in a single row vector form ...

casi 6 años ago

Solved

Church Encoding

Church encoded numeral is a function which takes two arguments _f_ and _x_ and applies _f_ to _x_ several times. For example,...

casi 6 años ago

Solved

BASICS - sum part of vector

Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum. Examp...

casi 6 años ago