A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 1

Réponse apportée
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

plus de 6 ans il y a | 0

Réponse apportée
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 ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 6 ans il y a | 0

Réponse apportée
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)...

plus de 6 ans il y a | 0

Réponse apportée
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. ...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

Charger plus