已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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.

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已回答
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...

11 years 前 | 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...

11 years 前 | 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; ...

11 years 前 | 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...

11 years 前 | 0

已回答
Reading Text File As Numbers
function SCORE2(action) if nargin<1 action='initialize'; end; if strcmp(action,'initialize') close all;clc; figNum...

11 years 前 | 0

已回答
Problems with executing a .m file inside a push callback
function SCORE3(action) if nargin<1 action='initialize'; end; if strcmp(action,'initialize') close all;cl...

11 years 前 | 0

已回答
aligning text in plots
clear all;clc;close all; x=1:10;y=1:10; plot(x,y,'ro') text([1:10]-1.5,[1:10]+1,'Point X') axis([-1 12 -1 12])

11 years 前 | 0

加载更多