Risolto


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

oltre 6 anni fa

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

oltre 6 anni fa | 0

| accettato

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

Risolto


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

oltre 6 anni fa

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

oltre 6 anni fa | 0

| accettato

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

| accettato

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

oltre 6 anni fa | 0

| accettato

Risolto


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

oltre 6 anni fa

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

Risolto


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

oltre 6 anni fa

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Carica altro