Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

Gelöst


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

mehr als 12 Jahre vor

Gelöst


inner product of two vectors
inner product of two vectors

mehr als 12 Jahre vor

Beantwortet
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?

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 4

| akzeptiert

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Mehr laden