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.
9 months ago
Ok, for all who are/were interested, here is my solution:
I constructed my own hit crossing block.
Answered 9 months ago
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...
Asked 9 months ago
just save your data you want to show in the second GUI in the handles, like
handles.mydata = mydata;
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 &&
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
here's my problem:
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 7 months ago
Given a string such as
s = '011110010000000100010111'
find the length of the longest string of consecutive 1's. In this examp...
8 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.
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...
The Soroban is the name of the modern Japanese abacus. Information on reading a Soroban can be found <http://we...
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.
Input in = [ 8 3
5 9 ]
Output out is 4...
Given two lists of numbers, determine the weighted average.
[1 2 3] and [10 15 20]
should result in
_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, ...
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...
3 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.
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.
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.
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.]
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.
Remove the nth column from input matrix A and return the resulting matrix in output B.
A = [1 2 3; 4 5 6];
Join the conversation