Community Profile

Contact

Top 5% contributor

m=5; u=[zeros(1,m-1) rand(1,1000)] ; c=rand(m); s=rand(m); tmp=1; while (tmp<=(length(u) - (m-1))) for i = 1:...

3 Answers

0

Asked 1 year ago

for i=1:n A(i)=exp(-0.5*((x-c(i))./s(i)).^2); end where x=sin(2*pi*t) t=1:.3:10 n=length(x) ...

1 Answers

more than matlab help. like what it does? why it required? how it works? and other aspects you know. and also ...

how to add image to my question i require a certain type of graph. but not able to show u in the question.

Asked 2 years ago

i have tried 1D membership function and plot it. like trapezoidal, gaussian, bell etc. these are one dimensional. for example ...

I want to write a program so that after running it give desired output of some algorithm and display result in command window. a...

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

Solve this!

2 years ago

Given a and b, return the sum a+b in c.

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

Regardless of input, output the string 'yes'.

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

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

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

Given the input n, return true if n is odd or false if n is even.

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

i have 3 input like x1, x2, x3. and input sinal as for t=1:1000 if t<250 u(t)=sin(pi*t/25); else...

<<http://snag.gy/iCGzn.jpg>> where r[k]=input k=1,2,3,4....k f(0),f(1),....f(k-1) are coefficients y[k]=outp...

I want a vector like X(i,G)={x(1,i,G),x(2,i,G),x(3,i,G)........x(D,i,G)} where i=1,2....10 D=1,2....10 ...

clc close all clear all %type1 network fuzzy yd1=-.1; yd0=-.07; u3=0; u2=0; u1=0; u0=0; for ...

i have to generate Membership Function of type-2 fuzzy logic which handle uncertainty. there is a toolbox but how to generate...