解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

回答済み
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...

1年以上 前 | 0

回答済み
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...

1年以上 前 | 0

回答済み
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...

1年以上 前 | 0

| 採用済み

回答済み
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...

1年以上 前 | 0

回答済み
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...

1年以上 前 | 0

回答済み
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...

1年以上 前 | 0

回答済み
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...

1年以上 前 | 0

回答済み
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...

1年以上 前 | 1

回答済み
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

1年以上 前 | 0

回答済み
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 ...

1年以上 前 | 1

| 採用済み

回答済み
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 ...

1年以上 前 | 0

回答済み
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)...

1年以上 前 | 0

回答済み
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. ...

1年以上 前 | 0

回答済み
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...

1年以上 前 | 0

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

Load more