Community Profile

Top 5% contributor

Hi, today a problem occurred, I thought it's kind of a no-brainer, but I was wrong: If I get the pathname of my current ...

2 Answers

0

Asked 9 months ago

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

5904 views

Responded 2 years ago

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

accepted

Answered 2 years 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...

Asked 2 years 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 4 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 4 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...

You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

Solve this!

19 days ago

Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

20 days ago

Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-offset-eqn.png>> You should see a downward...

1 year ago

Produce a sine wave with amplitude 3: <<http://blogs.mathworks.com/images/seth/cody/sine-eqn.png>>

Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-block-eqn.png>> In this case, the slope of...

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

Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...

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

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

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

4 years ago

Load more

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries