Community Profile

photo

Erik Newton


Newtek Software Ltd.

Last seen: quasi 3 anni fa Attivo dal 2009

Professional Matlab/Simulink Consultant
Professional Interests: System Modelling

Statistiche

All
  • 5-Star Galaxy Level 1
  • First Submission
  • Solver

Visualizza badge

Content Feed

Visto da

Domanda


How do you name S-Function parameters which default to P1, P2 etc
For many years now I have noticed that when I write a c-code S-function, in the rtw file, my parameters end up just being called...

quasi 8 anni fa | 0 risposte | 0

0

risposte

Risolto


Create a dictionary
The goal is to write a function that returns a dictionary from a list of words or phrases and their definitions. Here is an exam...

circa 8 anni fa

Domanda


License problems when running MATLAB from Jenkins on Mac
I'm experimenting with running MATLAB from Jenkins, which essentially boils down to (I think) needing to run MATLAB from a syste...

circa 10 anni fa | 1 risposta | 0

1

risposta

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

oltre 10 anni fa

Risolto


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

oltre 10 anni fa

Risolto


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

oltre 10 anni fa

Risolto


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.

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Risolto


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

oltre 10 anni fa

Inviato


fitpath
Gracefully truncate a file path to fit into uicontrols.

circa 15 anni fa | 1 download |

Thumbnail