Gelöst


Produce a cosine wave
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>

mehr als 10 Jahre vor

Gelöst


Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...

mehr als 10 Jahre vor

Gelöst


Remove DC
Input x is the sampled signal vector, may have both AC and DC components. Output y should not contain any DC component. Examp...

mehr als 10 Jahre vor

Gelöst


Evil Number
Check if a given natural number is evil or not. Read more at <https://oeis.org/A001969 OEIS>.

mehr als 10 Jahre vor

Gelöst


Narcissistic number ?
Inspired by Problem 2056 created by Ted. In recreational number theory, a narcissistic number is a number that is the sum of ...

mehr als 10 Jahre vor

Gelöst


Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

mehr als 10 Jahre vor

Gelöst


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

mehr als 10 Jahre vor

Gelöst


Repeat string n times
* You will be provided a string (s = 'string1_') * a starting point (num1 = 6) (always bigger than or equal to zero) * and n (...

mehr als 10 Jahre vor

Gelöst


Is it column vector?
Is it column vector? Check vector for column vector without using iscolumn function.

mehr als 10 Jahre vor

Gelöst


replace empty matrices with '[]'
for example a=1;a(:,1)=[]; returns a = Empty matrix: 1-by-0 use this as the input,and the output should be '[]...

mehr als 10 Jahre vor

Gelöst


Sort complex numbers into complex conjugate pairs
Sort complex numbers into complex conjugate pairs. Example: Input x = [3-6i -1-4i -1+4i 3+6i] Sorted output = [-1 - ...

mehr als 10 Jahre vor

Gelöst


Matrix Generation.
if input n =1, generate a matrix y = [1]

mehr als 10 Jahre vor

Gelöst


Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

mehr als 10 Jahre vor

Gelöst


Let's see how peculiar we can get
The task is to multiply two numbers. But do it in the most peculiar possible way.

mehr als 10 Jahre vor

Gelöst


find the relation...
if given input is 1, output is 4. if input is 55, output is 3136.

mehr als 10 Jahre vor

Gelöst


Find the area of a rectangle if length of the diagonal is given.
if length of a diagnonal in rectangle is 5. Its area is 12.

mehr als 10 Jahre vor

Beantwortet
Problem writing in data into a csv using fprintf
Have you tried <http://www.mathworks.com/help/matlab/ref/csvwrite.html csvwrite> or <http://www.mathworks.com/help/matlab/ref/d...

mehr als 10 Jahre vor | 0

Gelöst


Pancake sorting - minimum flips.
Sort a stack of pancakes by flipping them using spatula. * There are _N_ pancakes with diameters _1:N_. * Spatula can be ins...

mehr als 10 Jahre vor

Gelöst


Lightning strike distance: Writing a function
Write a function named LightningDistance that outputs "distance" given input "seconds". Seconds is the time from seeing lightnin...

mehr als 10 Jahre vor

Gelöst


Extract leading non-zero digit
<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...

mehr als 10 Jahre vor

Gelöst


Connect blocks in a model
Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...

mehr als 10 Jahre vor

Problem


Quine : write a quine in MATLAB
Quine is a type of program whose output matches the source code. See: <https://en.wikipedia.org/wiki/Quine_(computing) Quine in...

mehr als 10 Jahre vor | 3 | 13 Lösungsvorschläge

Beantwortet
Can this loop be sped up significantly?
It seems like you are trying to calculate a 2-tap FIR filter (if your lagsTE = 1) or lagsTE+1 tap FIR filter with lagsTE-2 coeff...

mehr als 10 Jahre vor | 0

Beantwortet
How to convert floating point filter coeffiecients ( generated from FDA tools) to fixed point without Fixed point toolbox
Did you try the fixed point conversion tool ? It generates fixed point MATLAB code as intermediate output during generation o...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
I wanna create vector of structures
You may also try, in addition to Azzi's code, ii=1:10; vec = arrayfun ( @(i) struct('a',i, 'b',20-i, 'c',i+3), ii ); ...

mehr als 10 Jahre vor | 0

Beantwortet
How set minimum peak height (threshold of peak height)
Turns out in your case there is an option called *MinPeakHeight* in the *findpeaks* documentation. Check this out, <http://ww...

mehr als 10 Jahre vor | 0

Beantwortet
Why is my RGB image not displaying as expected using imshow?
Have you tried using a, *colormap* >> doc colormap may help.

mehr als 10 Jahre vor | 0

Beantwortet
Read in a plain/text file in Matlab
Original question is answered by # doc fileread See split manipulation functions # doc strsplit # doc regexprep

mehr als 10 Jahre vor | 0

Mehr laden