Researcher using Matlab tools since 2015

Question

Default properties don't affect graphics, that are created with an empty parent

I regularly use graphics that are intentionally created unparented. Since I want my apps to work on all platforms, I have the ne...

ongeveer 2 maanden ago | 1 answer | 0

Solved

Extract leading non-zero digit

<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...

bijna 2 jaar ago

Solved

Function Iterator

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

bijna 2 jaar ago

Solved

Remove the small words from a list of words.

Your job is to tidy up a list of words that appear in a string. The words are separated by one or more spaces. Remove all words ...

bijna 2 jaar ago

Solved

Renaming a field in a structure array

MATLAB has a <http://www.mathworks.com/help/techdoc/ref/setfield.html setfield> and a <http://www.mathworks.com/help/techdoc/ref...

bijna 2 jaar 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 ...

bijna 2 jaar ago

Solved

Return the largest number that is adjacent to a zero

This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

bijna 2 jaar ago

Submitted

metaproperty(className, propertyName)

Retrieve meta.property objects more easily.

ongeveer 3 jaar ago | 1 download |

Submitted

NUM2ENG: Fast number to engineering notation (SI) conversion

Convert numbers to engineering notation.

meer dan 3 jaar ago | 4 downloads |

Answered

How can I send multiple commands to same command prompt opened by the first command

Use the system() function and string your commands together, separated by semicolons. system('cmd1; cmd2; cmd3')

How can I send multiple commands to same command prompt opened by the first command

Use the system() function and string your commands together, separated by semicolons. system('cmd1; cmd2; cmd3')

meer dan 3 jaar ago | 2

Answered

MATLAB : PROBLEM WITH CELLFUN AND TWO VARIABLES FUNCTION.

Try this: tempoutemp = cellfun( @(network,arr)sim(network,arr), tempwmul,temptemp, 'un',0 );

MATLAB : PROBLEM WITH CELLFUN AND TWO VARIABLES FUNCTION.

Try this: tempoutemp = cellfun( @(network,arr)sim(network,arr), tempwmul,temptemp, 'un',0 );

meer dan 3 jaar ago | 0

| accepted

Answered

Observe graphics object added to the axes

Maybe the 'LegendableObjectsUpdated' event could be used for your purposes. I retrieved this from events('matlab.graphics....

Observe graphics object added to the axes

Maybe the 'LegendableObjectsUpdated' event could be used for your purposes. I retrieved this from events('matlab.graphics....

meer dan 3 jaar ago | 0

Answered

How do I store data in multiple loops?

Try concatenating the column vectors in the first dimension. Use [x,y] instead of [x;y] or use horzcat(x,y). This only works of ...

How do I store data in multiple loops?

Try concatenating the column vectors in the first dimension. Use [x,y] instead of [x;y] or use horzcat(x,y). This only works of ...

meer dan 3 jaar ago | 0

Answered

Difference between String and Value

Different UI elements have different uses for the 'String' and 'Value' property. in 'uicontrol's these properties behave depende...

Difference between String and Value

Different UI elements have different uses for the 'String' and 'Value' property. in 'uicontrol's these properties behave depende...

meer dan 3 jaar ago | 0

Solved

An asteroid and a spacecraft

🚀 Imagine a non-relativistic simple situation. Assume positions p0, p1, p2, and p3 are three dimensional Cartesian ...

meer dan 3 jaar ago

Solved

Acid and water

⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ Assume that there is a 100 liter tank. It is initially fi...

meer dan 3 jaar ago

Solved

Cache me Outside

The test suite includes a simple recursive Fibonacci sequence generator, but it's terribly inefficient. One simple method for im...

meer dan 3 jaar ago

Solved

Sums of Distinct Powers

You will be given three numbers: base, nstart, and nend. Write a MATLAB script that will compute the sum of a sequence of both ...

meer dan 3 jaar ago

Solved

Pi Digit Probability

Assume that the next digit of pi constant is determined by the historical digit distribution. What is the probability of next di...

meer dan 3 jaar ago

Solved

Is it really a 5?

A number containing at least one five will be passed to your function, which must return true or false depending upon whether th...

meer dan 3 jaar ago

Solved

Write c^3 as sum of two squares a^2+b^2

write c^3 as sum of two squares a^2+b^2. a and b must be integer and greater than zero. For example 5^3 = 2^2 + 11^2 5...

meer dan 3 jaar ago

Solved

Van Eck's Sequence's nth member

Return the Van Eck's Sequence's nth member. For detailed info : <http://oeis.org/A181391 OEIS link> and <https://www.theguard...

meer dan 3 jaar ago

Solved

Number of Even Elements in Fibonacci Sequence

Find how many even fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

meer dan 3 jaar ago

Solved

5th Time's a Charm

Write a function that will return the input value. However, your function must fail the first four times, only functioning prope...

meer dan 3 jaar ago

Solved

"Cody" * 5 == "CodyCodyCodyCodyCody"

*Alice*: What? *"Cody" * 5 == "CodyCodyCodyCodyCody"*? You've gotta be kidding me! *Bob*: No, I am serious! Python supports...

meer dan 3 jaar ago

Solved

Extra safe primes

Did you know that the number 5 is the first safe prime? A safe prime is a prime number that can be expressed as 2p+1, where p is...

meer dan 3 jaar ago

Solved

Is this is a Tic Tac Toe X Win?

For the game of <https://en.wikipedia.org/wiki/Tic-tac-toe Tic Tac Toe> we will be storing the state of the game in a matrix M. ...

meer dan 3 jaar ago

Solved

Find the nearest prime number

Happy 5th birthday, Cody! Since 5 is a prime number, let's have some fun looking for other prime numbers. Given a positive in...

meer dan 3 jaar ago

Solved

The Top 5 Primes

This problem series invites you to solve two simple problems related to the integer NUMBER FIVE, in order to celebrate <https://...

meer dan 3 jaar ago

Solved

A Simple Tide Gauge with MATLAB

*∿ ∿ ∿ ∿ ∿ ∿ ∿ ∿* You are standing in a few inches of sea water on a beach. You a...

meer dan 3 jaar ago