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

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

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

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

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

6 years ago

Solved


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

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

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

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

6 years ago

Solved


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

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

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

6 years ago

Answered
Nested For loop with Cell Arrays
Hi Alec, I debugged your code and its actually a pretty small mistake. AR = [5:.2:12]; p = length(AR); Airfoil = 2...

6 years ago | 0

Answered
matlab R2017b: impossible to install on windows10
Hello Stefano Risa, Please visit this MATLAB answers link as it will help you to solve the issue. <https://www.mathworks.c...

6 years ago | 0

Answered
I want to know the cell number i.e. row and column of the matrix, whichever is above 10% of the normal vlaue. and i also want to get the values in the cell.
Hello Parul, You are doing the extraction of the row and column number properly. However, to get the value in the cell you ca...

6 years ago | 0

| accepted

Answered
2D PostProcessing plot in MATLAB
Hello Pranay, Its better if you convert the coord to a Nx2 matrix and temperature values to a Nx1 matrix by transposing it. T...

6 years ago | 0

Answered
Function that takes 2 input matrices (mxn3 color uint8 and mxn matrix of doubles) and returns an mxnx3 color image.
Hello Ray, I understood your problem and wrote the code as needed. function outputImage = matrixCombine(colorImage,doubl...

6 years ago | 0

Answered
Inserting Functions into Bisection Method Code
Hello Caleb Jones, I understand that you would want to know what *myfunc* should be rewritten.I have written the function bel...

6 years ago | 0

Answered
What is the best way to plot a 3D mesh using discrete point data contained in different matrices?
Hello Manuel Desole, I am assuming the name of your cell array to be "c". I have written code in such a way that the same mes...

6 years ago | 0

Answered
For loop to plot numbered double arrays
Hello Felix, Since you have not given a sample file I assume the data to be in a MAT file called "sample.mat". It can contain...

6 years ago | 1

Answered
MATLAB Production Server incluído en licencia TAH o Total Academic Headcount???
Hello Héctor Olmedo, TAH doesnot include License for MATLAB Production Server. Regards, Krishna Madala

6 years ago | 0

Answered
Why is the Matlab R2015a Coder not able to generate code from resample function - but Matlab 2016b Coder is?
Hello Daniel, Try to increase Constant Folding Timeout value.This can be done in two ways: 1. At the command line, create ...

6 years ago | 1

| accepted

Answered
How do I change location of the x axis of two scatter plots. I want x1 axis up and x2 axis down and y on the left of the plot
Hello Lewis Asilevi, I understand your issue but after trying for a long time I have realised that there is no direct way of ...

6 years ago | 0

Answered
Can i create a function that will plot more than one figure?
Hello Panagiotis Maximos Sifneos, You can do it by creating a MATLAB function as described below. function isoplot(x)...

6 years ago | 0

Answered
Plot multiple plots on the same graph
Hello DIP, I understand that you want all the plots to be combined into a single plot. This can be done as shown below. ...

6 years ago | 0

Answered
Storing concatenated string array problem
Hello Matt, You should consider using cell arrays for this purpose. To concatenate 2 1xn arrays to a single nxn matrix the co...

6 years ago | 0

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

6 years ago

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

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

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

6 years ago

Load more