문제를 풀었습니다


Back to basics 12 - Input Arguments
Covering some basic topics I haven't seen elsewhere on Cody. Return a value equal to the number of input arguments to the fun...

대략 12년 전

문제를 풀었습니다


Back to basics 10 - Max Float
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive floating-point number MATLAB can han...

대략 12년 전

답변 있음
What should I do to display some information multi-line on the static text in the GUI?
if you want to append to existing string, get the string first and then append required data and display it. Example: for ...

대략 12년 전 | 1

| 수락됨

답변 있음
Function xlsread too slow
you can use activeX servers.Example: http://www.mathworks.com/matlabcentral/answers/94822

대략 12년 전 | 0

| 수락됨

문제를 풀었습니다


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

대략 12년 전

문제를 풀었습니다


inner product of two vectors
inner product of two vectors

대략 12년 전

답변 있음
how can i create in gui a pushbutton which has 2 callbacks and executes his second callback after a long press of 2 second?
Do you have any reasons for not using a toggle switch?

대략 12년 전 | 0

| 수락됨

답변 있음
I want to make this signal to that signal , What should I do?
You should use a Relational Operator, and a Combination of Unit Delay and Relational Operator to do this.

대략 12년 전 | 0

답변 있음
How to simply add the date to a file name when saving a file.
get the datestring above, make the filename as per your need with the datestring. eg: FileName=['proj',datestr(now, 'dd-...

대략 12년 전 | 4

| 수락됨

답변 있음
I WANT A CODE
If you have Communication Toolbox, all standard modulation and de-modulation functions are defined in that. If you do not have i...

대략 12년 전 | 1

| 수락됨

답변 있음
create a matrix with existing matrix
C and D have same number of rows. Similarly A and B have same number of rows. So C to D is straightforward since number of row...

대략 12년 전 | 1

| 수락됨

답변 있음
Print array value into excel
You want to write this into an Excel File? ExcelData=[1:7]'; xlswrite(ExcelFileName,ExcelData); will do.

대략 12년 전 | 0

| 수락됨

답변 있음
summation and products of series in matlab
If the series is an array, you could just do a sum(Array) or prod(array) to get the results.

대략 12년 전 | 0

답변 있음
HOW TO CALL AN EXTARNAL FUNCTION INTO A PUSHBUTTON CALLBACK FUNCTION
You can just have a function call to that function with necessary inputs. support you want to pass im to the function function1(...

대략 12년 전 | 0

문제를 풀었습니다


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

12년 초과 전

문제를 풀었습니다


Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

12년 초과 전

문제를 풀었습니다


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

12년 초과 전

문제를 풀었습니다


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

12년 초과 전

문제를 풀었습니다


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

12년 초과 전

문제를 풀었습니다


Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

12년 초과 전

문제를 풀었습니다


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

12년 초과 전

문제를 풀었습니다


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

12년 초과 전

문제를 풀었습니다


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

12년 초과 전

문제를 풀었습니다


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

12년 초과 전

문제를 풀었습니다


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

12년 초과 전

문제를 풀었습니다


Ohm's Law
Well its Ohm's law... So V = IR! I will give two of the three values, such as V and I or I and R and you have to return th...

12년 초과 전

문제를 풀었습니다


NO _________ ALLOWED....
So you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the...

12년 초과 전

문제를 풀었습니다


Calculate the height of an object dropped from the sky
Assume that an object is dropped from 1000 meters above the surface of the earth at time t=0. The object is dropped such that t...

12년 초과 전

문제를 풀었습니다


Finding peaks
Find the peak values in the signal. The peak value is defined as the local maxima. For example, x= [1 12 3 2 7 0 3 1 19 7]; ...

12년 초과 전

문제를 풀었습니다


How many jokers?
* Given DNA codes of a group of suspects, * and a code for certain types of jokers, * Count how many jokers of that type. * ...

12년 초과 전

더 보기