Solved

Find relatively common elements in matrix rows

You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

2 maanden ago

Solved

Quote Doubler

Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

2 maanden ago

Solved

Binary numbers

Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

2 maanden ago

Solved

Sort a list of complex numbers based on far they are from the origin.

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

2 maanden ago

Solved

Counting Money

Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

2 maanden ago

Solved

Remove the vowels

Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

2 maanden ago

Solved

Bullseye Matrix

Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

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

2 maanden ago

Solved

Remove all the consonants

Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

2 maanden ago

Answered

Folder Permissions for Matlab/Simulink on Ubuntu 18.04

Hello Mahmud As long at you are able to access the MATLABROOT folder, it should not be a problem. Even if you do run into issu...

Folder Permissions for Matlab/Simulink on Ubuntu 18.04

Hello Mahmud As long at you are able to access the MATLABROOT folder, it should not be a problem. Even if you do run into issu...

2 maanden ago | 0

Answered

Size of Splash Screen too big - Deploytool

Hello Yannick, Ideally, the application compiler will use the same number of pixels that are present in the splash screen that ...

Size of Splash Screen too big - Deploytool

Hello Yannick, Ideally, the application compiler will use the same number of pixels that are present in the splash screen that ...

2 maanden ago | 0

| accepted

Answered

How to shift my Data in X Direction?

Hello Khalil, It makes sense that you can not efficienlty use interp1 to shift the maximum's as all of these waveforms have a ...

How to shift my Data in X Direction?

Hello Khalil, It makes sense that you can not efficienlty use interp1 to shift the maximum's as all of these waveforms have a ...

2 maanden ago | 0

Answered

How can I solve this problem ? 'Area between curves'

Hello Abdulrahman, This answer will help you solve this problem. It demostrates how you can calculate the area between two cur...

How can I solve this problem ? 'Area between curves'

Hello Abdulrahman, This answer will help you solve this problem. It demostrates how you can calculate the area between two cur...

2 maanden ago | 0

Answered

How can I isolate two circular objects in an image that are touching?

Hello Daniel, You could look out for circular objects in an image by following this blog. Furthermore, when you get the coo...

How can I isolate two circular objects in an image that are touching?

Hello Daniel, You could look out for circular objects in an image by following this blog. Furthermore, when you get the coo...

2 maanden ago | 0

Answered

How to program EEPROM (not Arduino / Raspberry PI)

Hello Charlie, SIMULINK's embedded coder can generate code only for those devices which are listed under the supportPackageIn...

How to program EEPROM (not Arduino / Raspberry PI)

Hello Charlie, SIMULINK's embedded coder can generate code only for those devices which are listed under the supportPackageIn...

2 maanden ago | 0

Answered

working with large matrices

Hello Bram, You could look at implementing Tall Arrays. The documentation link can be found here.

working with large matrices

Hello Bram, You could look at implementing Tall Arrays. The documentation link can be found here.

2 maanden ago | 0

Answered

Sending signal from matlab to TivaC launchpad with code composer studio.

Hello Sriram, You can call a custom MATLAB function from simulink. Thiscustom function can then be sent to the Serial port of ...

Sending signal from matlab to TivaC launchpad with code composer studio.

Hello Sriram, You can call a custom MATLAB function from simulink. Thiscustom function can then be sent to the Serial port of ...

2 maanden ago | 0

Answered

IMU reference frame with respect to heading

Hello Silvia Have you tried changing the orientation of the IMU? try changing the IMU's oriantaion along the x,y axes while le...

IMU reference frame with respect to heading

Hello Silvia Have you tried changing the orientation of the IMU? try changing the IMU's oriantaion along the x,y axes while le...

2 maanden ago | 0

Answered

What are strategies for coding real time audio analysis?

Hello Matthew, Simulink has a Real-Time Audio System Toolbox. The documentation for the same can be found here. This would be...

What are strategies for coding real time audio analysis?

Hello Matthew, Simulink has a Real-Time Audio System Toolbox. The documentation for the same can be found here. This would be...

2 maanden ago | 0

Answered

Save Signals in Simulink

Hello Zaucher To save information in simulink, you could write the information to a mat file. The 'To File' block in simulink ...

Save Signals in Simulink

Hello Zaucher To save information in simulink, you could write the information to a mat file. The 'To File' block in simulink ...

2 maanden ago | 0

Solved

Summing digits

Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

2 maanden ago

Solved

Nearest Numbers

Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

2 maanden ago

Solved

Pangrams!

A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

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

2 maanden ago

Solved

Find the longest sequence of 1's in a binary sequence.

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

2 maanden ago

Solved

Remove all the words that end with "ain"

Given the string s1, return the string s2 with the target characters removed. For example, given s1 = 'the main event' your ...

2 maanden ago

Solved

Return the 3n+1 sequence for n

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

3 maanden ago

Solved

Most nonzero elements in row

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

3 maanden ago

Solved

Who Has the Most Change?

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

3 maanden ago

Solved

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.

3 maanden ago