Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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 '[]...

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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.

quasi 11 anni fa

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

quasi 11 anni fa | 0

Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Risolto


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

quasi 11 anni fa

Problema


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

quasi 11 anni fa | 3 | 14 risolutori

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

| accettato

Risposto
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 ); ...

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

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

quasi 11 anni fa | 0

Carica altro