Solved

Moving average (variable kernel length)
Find the moving average in a vector. The kernel length is a variable. For example x = 1:10 kernel_length = 2 would r...

mer än 8 år ago

Solved

Continued fractions
Find a <http://en.wikipedia.org/wiki/Continued_fraction continued fraction> approximation of x.

mer än 8 år ago

Solved

Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

mer än 8 år ago

Solved

Sum the elements in either diagonal of a square matrix
Sum the elements of a square matrix that lie on either the major diagonal or anti-diagonal.

mer än 8 år ago

Solved

frame of the matrix
Given the matrix M, return M without the external frame.

mer än 8 år ago

Solved

Matrix with different incremental runs
Given a vector of positive integers a = [ 3 2 4 ]; create the matrix where the *i* th column contains the vector *1:a(i)...

mer än 8 år ago

Solved

find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

mer än 8 år ago

Solved

commutative?
Given the handle to a binary function that takes two ordinary numbers, test if the function is commutative.

mer än 8 år ago

Solved

The Dark Side of the Die
It is well-known that opposite sides of a classic hexahedral die add to 7. Given a vector of dice rolls, calculate the sum of th...

mer än 8 år ago

Solved

String substitution, sub problem to cryptoMath
This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

mer än 8 år ago

Solved

Infernal Recursion
Consider the recursion relation: x_n = (x_(n-1)*x_(n-2))^k Given x_1, x_2, and k, x_n can be found by this definition. Wr...

mer än 8 år ago

Solved

Basic arrays operations.
Apply element-by-element binary operation 'fun' to two arrays (A and B).

mer än 8 år ago

Solved

Generate a string like abbcccddddeeeee
This is the string version of Problem 1035. <http://www.mathworks.com/matlabcentral/cody/problems/1035-generate-a-vector-like-1-...

mer än 8 år ago

Solved

Colon operator of two vectors
You are given two vectors of equal length: VecStart, VecEnd Each vector contain a set of integers, where VecEnd(j)>=VecStar...

mer än 8 år ago

Solved

Wrapping the Tower of Pisa
The famous artist Christo Vladimirov Javacheff, who likes pizza, wants to wrap the well-known Italian tower in paper. It is a ci...

mer än 8 år ago

Solved

Derivative of polynomial
Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...

mer än 8 år ago

Solved

Sort numbers by outside digits
Sort the array so that they are sorted as if their value was a 5 digit number made from the first three and last two digits of t...

mer än 8 år ago

Solved

Sum the entries of each column of a matrix which satisfy a logical condition.
Given a numeric matrix A and a logical array L of the same size as A, return a row vector S containing the columnwise sums of th...

mer än 8 år ago

Solved

does it touch ?
given a sentence, tell how much it touches. input : string output : how much it touches touching : a bilabial phoneme d...

mer än 8 år ago

Solved

Fizz Buzz
Given an array of positive, non-zero, integers, return a cell array of strings the same size as the input, where each element in...

mer än 8 år ago

Solved

Find the nearest integer
Given a vector of integers and a real number find the closest integer. EX: >> a = [2 4 5 6 8 10]; >> b = 4.6; >> nea...

mer än 8 år ago

Solved

Detect a number and replace with two NaN's
Write code which replaces the number 1 with two NaNs. Example X = [ 1 2 NaN 4 1 3 7 NaN 1 4 NaN 2] ...

mer än 8 år ago

Solved

Implement simple rotation cypher
If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

mer än 8 år ago

How to Put Data into table?
clear all;clc;close all figure('Name','Di') for i=1:4 prompt =reshape(1:i*i,i,i); pause(1) t= uitable(); set(t,'Data',pr...

mer än 8 år ago | 0

how to print output in gui
figure('Name','Di') prompt = {4 5 5 1 3}; uicontrol('Style','text','unit','inches','position',[1 1 1 1],'String',sum(cell2...

mer än 8 år ago | 0

How to get a non integer value from uicomponent slider (Jslider) in Matlab?
function [] = ANALOGCOMM(action) if nargin<1, action='initialize'; end; if strcmp(action,'initialize') close all; ...

mer än 8 år ago | 0

Having picture appear on GUI
%%%THIS IS AN GUI FUNCTION YOU CAN GET SO MANY TYPES OF BUTTONS AND THE USE %%%OF POPUP BUTTONS: 'HOW TO ASSOCIATE WITH DIFFEREN...

mer än 8 år ago | 0

function SCORE2(action) if nargin<1 action='initialize'; end; if strcmp(action,'initialize') close all;clc; figNum...

mer än 8 år ago | 0