Community Profile

# John Smith

Last seen: mer än ett år ago Active since 2018

All

#### Content Feed

View by

Question

Constant block only outputs a single data point
Hi everyone, Constant blocks in Simulink have started behaving strangely for me very suddenly. As in the title - the constant b...

mer än ett år ago | 1 answer | 0

### 1

Question

Previous Value of Numeric Edit Field
Hi all, Is there a quick way to reference the previous value of an App Deigner numeric edit field? This is in order to reset th...

mer än 2 år ago | 2 answers | 0

### 2

Solved

Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

mer än 3 år ago

Solved

Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

mer än 3 år ago

Solved

Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

mer än 3 år ago

Solved

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

mer än 3 år ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

mer än 3 år ago

Solved

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

mer än 3 år ago