Community Profile

Contact

Top 5% contributor

Is there a solution to this? I tried to do and if-else-statement with action language C for hours, without success.

2862 views

Responded 4 months ago

Ok, for all who are/were interested, here is my solution: I constructed my own hit crossing block. <</matlabcentral/answ...

accepted

0

Answered 4 months ago

Hey community, I'm frustrated by now. I can't use the given Simulink block for a Relay because I have to change the switch on/o...

2 Answers

Asked 4 months ago

Hey John, just save your data you want to show in the second GUI in the handles, like handles.mydata = mydata; or wit...

Answered 3 years ago

it works fine with find( (2*Sig_log(:,1)+Sig_log(:,2)>1) & (2*Sig_log(:,1)+Sig_log(:,2)<3) ) just take & instead of && ...

Hello Community, I try to write a programm with 2 GUIs. (with GUIDE) in the first one, datasets will be selected and loaded...

Asked 3 years ago

Hey there, here's my problem: with find( 3> ( 2*Sig_log(:,1) + Sig_log(:,2) ) >1) I try to get the idx, where th...

I wonder, if there is no nicer way for doing this: mdlPara = load([datasetPath,datasetName]); rename = fieldnames(mdlPar...

Asked 3 months ago

Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

Solve this!

4 months ago

Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

*Description* The Soroban is the name of the modern Japanese abacus. Information on reading a Soroban can be found <http://we...

*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

1 year ago

There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

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

_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): As an addit...

At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

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

Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

2 years ago

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

Check if sorted. Example: Input x = [1 2 0] Output y is 0

List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

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

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

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

Load more