Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 1

Beantwortet
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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Mehr laden