Community Profile

# Andreas

Last seen: 29日 前 2013 年からアクティブ

born in last century

All

バッジを表示

#### Content Feed

Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

2年以上 前

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

2年以上 前

Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

2年以上 前

Is my wife right?
Regardless of input, output the string 'yes'.

2年以上 前

intersection of matrices
Given two matrices filled with ones and zeros, determine if they share a common row, column entry. These matrices are of identi...

2年以上 前

We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

2年以上 前

Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

2年以上 前

Piecewise linear interpolation
Given an Mx2 vector and a row of M-1 integers, output a two column vector that linearly interpolates Y times between each succes...

2年以上 前

Simulink Project ignore files and folders
I'm using Simulink Project in R2017b to organize my project. Within the project folder, I have some files which should not be p...

3年以上 前 | 1 件の回答 | 0

### 1

Why am I getting different matrices in workspace and command window?
I can't see any difference. Have you already seen the common factor of 1.0 e3 at the top of your command window output?

3年以上 前 | 2

Sums of Distinct Powers
You will be given three numbers: base, nstart, and nend. Write a MATLAB script that will compute the sum of a sequence of both ...

5年以上 前

The 5th Root
Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...

5年以上 前

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

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

Easy answer: The OR-Block is exactly what I need. I wrote too many .m-Scripts.

6年以上 前 | 2

| 採用済み

I want to find out wheter an input signal's value is included in an array or not. In Matlab, I would use such code: a = ...

6年以上 前 | 1 件の回答 | 0

### 1

How can I select a system/model without opening it?
This topic is very old, but I'm really interestedin this feature. Is there any new functionality within simulink api?

6年以上 前 | 3

Make a full wave rectifier
Produce a full wave rectifier waveform for the given sine wave source. For a sine wave input, the output of the full wave rec...

6年以上 前

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

6年以上 前

Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

7年弱 前

I want to access some excel data with a loop over some rows and columns. With vba, I am used to do this with the cell-property ...

10年弱 前 | 2 件の回答 | 0