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

14 Tage ago

Answered

I need help with my GUI

See the 'interruptible' property of callbacks in app designer - e.g. here under the heading 'Callback execution control'. You n...

I need help with my GUI

See the 'interruptible' property of callbacks in app designer - e.g. here under the heading 'Callback execution control'. You n...

26 Tage ago | 0

| accepted

Answered

How to store value in simulink

There is a good blog entry covering this. I'd recommend the 'Enabled Subsystem' approach (coincidently the author's favourite a...

How to store value in simulink

There is a good blog entry covering this. I'd recommend the 'Enabled Subsystem' approach (coincidently the author's favourite a...

28 Tage ago | 0

Answered

Real Time data into Simulink

Have you tried the 'MATLAB Function' block? You may be able to insert part of your script into the function (double click on ...

Real Time data into Simulink

Have you tried the 'MATLAB Function' block? You may be able to insert part of your script into the function (double click on ...

28 Tage ago | 0

Answered

Get Matlab Startup directory

You can use : >> pwd to return the present working directory in MATLAB. You define your procedure as : I start Matlab with...

Get Matlab Startup directory

You can use : >> pwd to return the present working directory in MATLAB. You define your procedure as : I start Matlab with...

etwa ein Monat ago | 0

Answered

strcmp with or-condition

Generally I would recommend just writing out two lines as Adam proposed earlier. But if you really want 'one line' with a lis...

strcmp with or-condition

Generally I would recommend just writing out two lines as Adam proposed earlier. But if you really want 'one line' with a lis...

etwa ein Monat ago | 0

| accepted

Answered

Is it possible to make a while error or while no error Matlab

I don't quite follow the use of 'while' here but if I understand correctly then hopefully the following will be useful. You c...

Is it possible to make a while error or while no error Matlab

I don't quite follow the use of 'while' here but if I understand correctly then hopefully the following will be useful. You c...

etwa ein Monat ago | 1

Answered

Why the loop does not stopped?

See the 'interruptible' property of callbacks in app designer - e.g. here under the heading 'Callback execution control'. The...

Why the loop does not stopped?

See the 'interruptible' property of callbacks in app designer - e.g. here under the heading 'Callback execution control'. The...

etwa ein Monat ago | 0

| accepted

Answered

I want this code to run only once. Battery Charge/Discharge

One way of doing this would be using Persistent variables - but just as with global variables you will need to be careful - to ...

I want this code to run only once. Battery Charge/Discharge

One way of doing this would be using Persistent variables - but just as with global variables you will need to be careful - to ...

etwa ein Monat ago | 1

| accepted

Solved

Counting in Finnish

Sort a vector of single digit whole numbers alphabetically by their name, in Finnish. See the Wikipedia page for <http://en.wik...

7 Monate ago

Solved

Connect Four Win Checker

<http://en.wikipedia.org/wiki/Connect_Four Connect Four> is a game where you try to get four pieces in a row. For this problem, ...

7 Monate ago

Solved

The Goldbach Conjecture, Part 2

The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

7 Monate ago

Solved

The Goldbach Conjecture

The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

7 Monate ago

Solved

Knight's Tour Checker

Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...

7 Monate ago

Solved

Alphabetize by last name

Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

7 Monate ago

Solved

What is the next step in Conway's Life?

Given a matrix A that represents the state of <http://en.wikipedia.org/wiki/Conway's_Game_of_Life Conway's game of Life> at one ...

7 Monate ago

Solved

Find the peak 3n+1 sequence value

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

7 Monate ago

Solved

Encode Roman Numerals

Create a function taking a non-negative integer as its parameter and returning a string containing the Roman Numeral representat...

7 Monate ago

Solved

Read a column of numbers and interpolate missing data

Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

7 Monate ago

Solved

Make a checkerboard matrix

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

7 Monate ago

Solved

Interpolator

You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

7 Monate ago