문제를 풀었습니다


All capital?
Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0

6년 초과 전

문제를 풀었습니다


Read a column of numbers and interpolate missing data
Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

6년 초과 전

문제를 풀었습니다


Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

6년 초과 전

답변 있음
Compare results of different step size using Euler's method
I have made a few tweaks to your code and it will now allow you to alter one parameter value (the time step size) and produce a ...

6년 초과 전 | 0

| 수락됨

답변 있음
finding the position of elements in a matrix if the elements are repeated
You could use pos = find(ismember(Z, M, 'rows') == 1); instead, although as I have commented above, I don’t think your ...

6년 초과 전 | 0

답변 있음
position of values in a matrix
If I understand what you are asking then you could use: Z=[23 24; 35 2; 12 19; 24 23; 12 15; 26 17]; M=[35 2; 12 15]; pos = f...

6년 초과 전 | 1

문제를 풀었습니다


Multiply a column by a row
* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

6년 초과 전

문제를 풀었습니다


Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

6년 초과 전

답변 있음
trouble with loops need help
As in your previous question, you can use the following bit of code. I have also updated the error in my answer to your previous...

6년 초과 전 | 0

답변 있음
assigning values to an array that already has values
Totally not an elegant answer but you could use something like: for i=1:numel(s) if(s(i)==1) s(i)==20; ...

6년 초과 전 | 0

| 수락됨

답변 있음
How to exclude some additional points from plot legend?
An alternative to the answer of Shubham Gupta if you already have the figure plotted and you want to keep all of the points but ...

6년 초과 전 | 0

답변 있음
Time-dependent immunity and drug resistant SIR model
Assuming you have your BetaL and re functions setup correctly then there are the errors listed in the comment from Aquatris but ...

6년 초과 전 | 0

| 수락됨

답변 있음
Remove one data-value from data set?
It is quite difficult to help without knowing the format in which you have your data stored. But, assuming that you have an arra...

6년 초과 전 | 0

답변 있음
remove occurrences of given characters in a string using find and []
If you absolutely have to use find then you could use function f=test(s,c) idx=find(s==c); s(idx)=[]; f=s; ...

6년 초과 전 | 0

| 수락됨

답변 있음
how can I count up the number from a specific interval?
Assuming you want the number of elements greater than 8 rather than the sum of the elements greater than 8 then you can simply u...

6년 초과 전 | 0

답변 있음
Error Code Implicit Euler Method
The problem in the code itself is that in l(x+1)=l(x)-(((c*h)/3)*l(x+1))-16*m(x+1)*h; the l(x+1) term exceeds your matrix dime...

6년 초과 전 | 2

| 수락됨

답변 있음
How can I arrange the y-values in xyz-data in ascending order?
You can use sortrows(A, column) where A is your array and column is the column you wish to sort.

6년 초과 전 | 1

| 수락됨

문제를 풀었습니다


Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

6년 초과 전

문제를 풀었습니다


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

6년 초과 전

문제를 풀었습니다


Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. The element values ...

6년 초과 전

문제를 풀었습니다


Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

6년 초과 전

문제를 풀었습니다


Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

6년 초과 전

문제를 풀었습니다


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

6년 초과 전

문제를 풀었습니다


Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

6년 초과 전

문제를 풀었습니다


Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

6년 초과 전

문제를 풀었습니다


Solve a System of Linear Equations
*Example*: If a system of of linear equations in _x&#8321_ and _x&#8322_ is: 2 _x₁_ + _x₂_ = 2 _x&#83...

6년 초과 전

문제를 풀었습니다


Calculate BMI
Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

6년 초과 전

문제를 풀었습니다


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

6년 초과 전

문제를 풀었습니다


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

6년 초과 전

문제를 풀었습니다


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

6년 초과 전

더 보기