Community Profile

Contact

Top 1% contributor

Hey everybody, I'd like to search a simulink model for Level-2 s-functions. So, when creating a script to do that and therefo...

1 Answers

0

Asked 1 year ago

Well guys, the failure was sitting in front of the screen^^ One has to check the position of the pointer after subtracting p...

accepted

Answered 2 years ago

Hey guys, I'm trying to calculate the magnitude and the phase of complex input signals by using a s-function (level-1 m-file)...

Asked 2 years ago

Hey guys, I'd like to convert a "tapped delay block" from Simulink to TargetLink. However, this kind of block isn't supported...

2 Answers

Hey guys, is there a way to run a Simulink model in floating point single precision without adding several converter blocks? ...

The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

Solve this!

1 year ago

If an equilateral triangle has area A, then what is the length of each of its sides, x? <<http://upload.wikimedia.org/wikipe...

Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

For a given input string str, find how many spaces are there in the string and replace those spaces with * e.g. str = 'this is ...

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

You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

Replace each character in string s1 with the character that is shifted 13 positions from it (wrap back to the beginning if neces...

Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to get the <http://www.ma...

Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...

Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provide...

Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...

Covering some basic topics I haven't seen elsewhere on Cody. Return the number of punctuation characters in the input variabl...

Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...

*Description* Return the first N perfect squares *Example* input = 4; output = [ 1 4 9 16 ];

Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

This is a basic MATLAB operation. It is for instructional purposes. --- Logical indexing works like this. thresh = 4...

Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

Covering some basic topics I haven't seen elsewhere on Cody. Switch the byte order of the input (i.e. if little-endian -> big...

This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, generate an output matrix that consists o...

Load more