Réponse apportée
position of an array
http://www.mathworks.se/help/matlab/ref/find.html find(array == 7)

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Code generation paths of model references
Not sure that it solves your problem since I have not actually used it myself, but it sounds like you are looking for something ...

environ 12 ans il y a | 0

A résolu


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

environ 12 ans il y a

A résolu


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

environ 12 ans il y a

Réponse apportée
what is the meaning of this phrase? "A larger population is required if no mutation is used, in order to ensure that the necessary building blocks are present in the crossover"
It sounds like you are using an evolutionary algorithm. After deciding which individuals to "mate", the population, i.e. number ...

environ 12 ans il y a | 0

Réponse apportée
How to calculate Beta
When you write func = ... you create a variable named func calculated from the values of your parameters (c, U, phi, dz), the er...

environ 12 ans il y a | 0

Réponse apportée
generation of data plot using an equation
I can see a few issues in your code: The use of vertcat when defining r_shell seems unnecessary, this should give the same re...

environ 12 ans il y a | 1

Réponse apportée
Simulink Matlab Function block
This function will read the value x from the base workspace, add 3 to it and write back the new value to the workspace as x. On ...

environ 12 ans il y a | 8

| A accepté

Réponse apportée
2008 Simulink compiler error on Windows 7 platform
Run mex -setup and select a compiler.

environ 12 ans il y a | 0

Réponse apportée
if statement problem with excel file
The first step would be to import the data from the excel file into Matlab by using the xlsread function. Then reformat the data...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
see the contents of the function 'filter'
'filter' is a MATLAB built-in function which means that it is not possible to see the code. If you need it to behave differently...

environ 12 ans il y a | 0

A résolu


Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

plus de 12 ans il y a

A résolu


Make a Palindrome Number
Some numbers like 323 are palindromes. Other numbers like 124 are not. But look what happens when we add that number to a revers...

plus de 12 ans il y a

A résolu


QWERTY coordinates
Given a lowercase letter or a digit as input, return the row where that letter appears on a <http://en.wikipedia.org/wiki/Keyboa...

plus de 12 ans il y a

A résolu


Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

plus de 12 ans il y a

A résolu


De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

plus de 12 ans il y a

A résolu


Balanced number
Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

plus de 12 ans il y a

A résolu


Replace NaNs with the number that appears to its left in the row.
Replace NaNs with the number that appears to its left in the row. If there are more than one consecutive NaNs, they should all ...

plus de 12 ans il y a

A résolu


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

plus de 12 ans il y a

A résolu


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

plus de 12 ans il y a

A résolu


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

plus de 12 ans il y a

A résolu


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

plus de 12 ans il y a

A résolu


Pattern matching
Given a matrix, m-by-n, find all the rows that have the same "increase, decrease, or stay same" pattern going across the columns...

presque 14 ans il y a

A résolu


Trimming Spaces
Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32). Input a = ' singular value deco...

presque 14 ans il y a

A résolu


Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

presque 14 ans il y a

A résolu


Elapsed Time
Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...

presque 14 ans il y a

A résolu


Making change
Given an amount of currency, return a vector of this form: [100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01] Example: Input a = ...

presque 14 ans il y a

A résolu


Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

presque 14 ans il y a

A résolu


Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

presque 14 ans il y a

A résolu


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

presque 14 ans il y a

Charger plus