Feeds
문제를 풀었습니다
Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...
거의 4년 전
문제를 풀었습니다
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)...
거의 4년 전
문제를 풀었습니다
Rotate input square matrix 90 degrees CCW without rot90
Rotate input matrix (which will be square) 90 degrees counter-clockwise without using rot90,flipud,fliplr, or flipdim (or eval)....
거의 4년 전
문제를 풀었습니다
Split a string into chunks of specified length
Given a string and a vector of integers, break the string into chunks whose lengths are given by the elements of the vector. Ex...
대략 4년 전
문제를 풀었습니다
Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...
대략 4년 전
문제를 풀었습니다
Guess Cipher
Guess the formula to transform strings as follows: 'Hello World!' --> 'Ifmmp Xpsme!' 'Can I help you?' --> 'Dbo J ifmq zpv...
대략 4년 전
문제를 풀었습니다
intersection of matrices
Given two matrices filled with ones and zeros, determine if they share a common row, column entry. These matrices are of identi...
대략 4년 전
문제를 풀었습니다
We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...
대략 4년 전
문제를 풀었습니다
Fill a zeros matrix
The aim is to fill an array of all zeros given a numerical value and the index of row and columns for this value. 3 Inputs: ...
대략 4년 전
답변 있음
How to assign a value against a string from 1st column to other?
Hi, The fastest way would be to create a Matlab variable directly. However, should you want to create a dynamic link to an Exce...
How to assign a value against a string from 1st column to other?
Hi, The fastest way would be to create a Matlab variable directly. However, should you want to create a dynamic link to an Exce...
대략 4년 전 | 0
답변 있음
Update GUI based on values chosen in a Radio Button Group
Hi, One possibility (might not be the most elegant solution) is to read all radio buttons in a single variable. When you cre...
Update GUI based on values chosen in a Radio Button Group
Hi, One possibility (might not be the most elegant solution) is to read all radio buttons in a single variable. When you cre...
대략 4년 전 | 0
답변 있음
check whether an interval instant belongs to an array of intervals
Hi, I would use cellfun to loop through the intervals and check in each cell. The function belows takes the cell array C and ...
check whether an interval instant belongs to an array of intervals
Hi, I would use cellfun to loop through the intervals and check in each cell. The function belows takes the cell array C and ...
대략 4년 전 | 0
| 수락됨
답변 있음
Assigning values from one array to another if certain specifications are met.
Hi, I think this should do the trick: A= [0 1 2 3 6 8 9 10; ... 0 0 0 0 0 ...
Assigning values from one array to another if certain specifications are met.
Hi, I think this should do the trick: A= [0 1 2 3 6 8 9 10; ... 0 0 0 0 0 ...
대략 4년 전 | 1
문제를 풀었습니다
Construct an index vector from two input vectors in vectorized fashion
Create an index vector defined by two input vectors, one defining the beginnings of one or more index ranges, and the other defi...
대략 4년 전
문제를 풀었습니다
Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...
4년 초과 전
문제를 풀었습니다
Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.
4년 초과 전
문제를 풀었습니다
Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...
4년 초과 전
질문
Arduino support package win10 compatibility
Hi, I'm trying to get Matlab and Simulink set up to work with an Arduino. However, when I try to install the support package...
4년 초과 전 | 답변 수: 0 | 0
0
답변문제를 풀었습니다
Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.
거의 5년 전
문제를 풀었습니다
Set some matrix elements to zero
First get the maximum of each *row*, and afterwards set all the other elements to zero. For example, this matrix: 1 2 3 ...
거의 5년 전
문제를 풀었습니다
Permute diagonal and antidiagonal
Permute diagonal and antidiagonal For example [1 2 3;4 5 6;7 8 9] -> [3 2 1;4 5 6;9 8 7] WITHOUT diag function (and variable n...
거의 5년 전
문제를 풀었습니다
Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...
거의 5년 전
문제를 풀었습니다
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 ...
거의 5년 전
문제를 풀었습니다
surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...
거의 5년 전
문제를 풀었습니다
Relative ratio of "1" in binary number
Input(n) is positive integer number Output(r) is (number of "1" in binary input) / (number of bits). Example: * n=0; r=...
거의 5년 전
문제를 풀었습니다
Solving Quadratic Equations (Version 1)
Quadratic equations have the form: ax^2 + bx + c = 0. Example: x^2 + 3x + 2 = 0, where a = 1, b = 3, and c = 2. The equation has...
대략 9년 전
문제를 풀었습니다
Lightning strike distance: Writing a function
Write a function named LightningDistance that outputs "distance" given input "seconds". Seconds is the time from seeing lightnin...
9년 초과 전