문제를 풀었습니다


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

대략 10년 전

문제를 풀었습니다


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

대략 10년 전

문제를 풀었습니다


Find the sum of all the numbers of the input vector
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 ...

대략 10년 전

문제를 풀었습니다


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

대략 10년 전

문제를 풀었습니다


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

대략 10년 전

답변 있음
Fix parameters using fit function
I think I understand what you're trying to do. Your function is this thing: |gaub = @(a,b,c1,c2,t1,w1,w2,x,y) ...%bunch of f...

대략 10년 전 | 0

| 수락됨

답변 있음
how to "write" a equation like string from a number matrix and a vector of varibles, and put those equation into cell to slxwrite to excel ?
Something like this should do it: A = magic(2); c = cell(1,2); c{1} = 'cat'; c{2} = 'winter'; out = cell(2,1)...

대략 10년 전 | 0

| 수락됨

답변 있음
How can I get a matrix for such a for loop ? I want to create a matrix with each of the i values, because now I only get always the last value for i.
You have to save the output at each step. The |ans| variable is being overwritten. For example C = struct(); for i=1:6 ...

대략 10년 전 | 0

답변 있음
Genetic Algorithm Iteration display in command window real time
The suggestion is actually made in the last part of the thread: use an <http://www.mathworks.com/help/gads/genetic-algorithm-op...

대략 10년 전 | 1

| 수락됨

답변 있음
Matlab - Sort into deciles each column
I think a way to do this is to use the |ecdf| command (http://www.mathworks.com/help/stats/ecdf.html) * If you take your data...

대략 10년 전 | 0

| 수락됨

답변 있음
getting a matrix from Excel data
There are a couple of ways. * The simplest way, if you're new to Matlab, is use the the file import tool. It's under the Fil...

대략 10년 전 | 0

답변 있음
Creating a dynamical plot with a for loop
I think you could try just make a function, calling |number_func(m)| which nests the code above. Then, evaluate |number_func...

대략 10년 전 | 0

| 수락됨

답변 있음
I am getting p values more than 0.05 while doing step regression? How to handle the resulted equation
This behaviour is actually expected in stepwiselm. If you're running stepwiselm with the default options, the issue is becaus...

대략 10년 전 | 0

| 수락됨

질문


TimeLimit option in Patternsearch being ignored?
Hi everyone, I have a problem which I am solving via the *patternsearch* function. Essentially, I have an objective function...

대략 10년 전 | 답변 수: 1 | 1

1

답변