已解决


Clean the List of Names
Given a list of names in a cell array, remove any duplications that result from different capitalizations of the same string. So...

6 years 前

已回答
Feature selection with NaN
Hi Azura, Have you tried the 'fillmissing' function in MATLAB? See the following link: <https://www.mathworks.com/help/matla...

6 years 前 | 0

| 已接受

已回答
Using fittype for three dimensions
Hi Colin The variable 'theta' is not being recognized by the fittype function- hence the error. Try this modified code instea...

6 years 前 | 0

已回答
Why does z appear in my solution? How to get the value of x? My friend using Matlab 2017 and he can get the answer but i cannot by using matlab 2018
Hi Razin The output that you have obtained is indeed the solution of the equation 'eqns' that you have provided. The solut...

6 years 前 | 0

已解决


Duplicates
Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...

6 years 前

已回答
I don't know how to surf when z is independet.
Hi Jaeuk I think this link might help: <https://www.mathworks.com/matlabcentral/answers/11561-making-mesh-from-independent-v...

6 years 前 | 0

| 已接受

已回答
When I use impulse for two different ss the plot is just one..I need two plots when I get the response and then I want to super impose those two plots..How do I do it
Hi Mirza Just use the 'hold on' command on the line above this one: impulse(Ac1,Bc1,Cc1,Dc1,1,'g'); 'hold on' will ensure tha...

6 years 前 | 0

已回答
i have these plots and i want the x axis and y axis to look similar. I mean the interval needs to be same.
Hi Pruthviraj Try the following sample code to manually set the intervals for x and y axes as you desire. x=0:0.1:1; y1...

6 years 前 | 0

已回答
help me about nlinfit
Hi Kim The second argument to the nlinfit function only accepts a vector. So it would be better to fit 'x' element-wise. I ha...

6 years 前 | 0

| 已接受

已回答
How do I multiply two variables of form A(:,:, i) and B(:,:,i) where i = 20
Hi Sagar Try this code: sum=0 for i=1:20 sum=sum+s(:,:,i).*(phi(:,:,i).^2) end It will work if the sizes of ...

6 years 前 | 0

| 已接受

已解决


Counting in Finnish
Sort a vector of single digit whole numbers alphabetically by their name, in Finnish. See the Wikipedia page for <http://en.wik...

6 years 前

已回答
Mean calculation from nxm matrices using nxm index matlab
Hi Abaye I understand that you wish to obtain the monthly mean flow for the data you have provided. Assuming that Month_data.ma...

6 years 前 | 0

已回答
fourier transform simple question
Hi Lin I'm attaching a code below which maybe what you are looking for. The plot returns the figure-1 with six signals that y...

6 years 前 | 0

已解决


Counting Sequence
Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

6 years 前

已回答
create changing size array simulink
Hi Mike, The error occurs because for code generation in Simulink, you have to define the array 'y' before indexing or sub-scri...

6 years 前 | 0

已回答
Can I threshold this further if so how?
Hi Oliver. I think the im2bw function may be of help to you. I tried the following code with the image you had attached and it s...

6 years 前 | 0

已解决


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

6 years 前

已解决


Encode Roman Numerals
Create a function taking a non-negative integer as its parameter and returning a string containing the Roman Numeral representat...

6 years 前

已解决


Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...

6 years 前

已解决


Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

6 years 前

已解决


Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

6 years 前

已解决


Sums with Excluded Digits
Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9. no...

6 years 前

已解决


Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provi...

6 years 前

已解决


Alternating sum
Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...

6 years 前

已解决


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 前

已解决


Flag largest magnitude swings as they occur
You have a phenomenon that produces strictly positive or negative results. delta = [1 -3 4 2 -1 6 -2 -7]; Marching thr...

6 years 前

已解决


Given a window, how many subsets of a vector sum positive
Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...

6 years 前

已解决


Implement simple rotation cypher
If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

6 years 前

已解决


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

6 years 前

已解决


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

6 years 前

加载更多