문제를 풀었습니다


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

14년 초과 전

문제를 풀었습니다


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

14년 초과 전

문제를 풀었습니다


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

14년 초과 전

문제를 풀었습니다


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

14년 초과 전

답변 있음
how to call a column of data from excel into matlab
yourdata = xlsread(your file name); then you can process it help mean help xlsread help importfile

14년 초과 전 | 0

| 수락됨

문제를 풀었습니다


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

14년 초과 전

문제를 풀었습니다


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

14년 초과 전

문제를 풀었습니다


Is my wife right?
Regardless of input, output the string 'yes'.

14년 초과 전

문제를 풀었습니다


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

14년 초과 전

문제를 풀었습니다


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

14년 초과 전

문제를 풀었습니다


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

14년 초과 전

문제를 풀었습니다


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

14년 초과 전

문제를 풀었습니다


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

14년 초과 전

문제를 풀었습니다


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

14년 초과 전

문제를 풀었습니다


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

14년 초과 전

문제를 풀었습니다


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

14년 초과 전

답변 있음
add two number and create the text file with the result in it
help xlswrite help fprintf may be you can do quick google search for this

14년 초과 전 | 0

질문


Simulink design optimization with Parallel computing toolbox
Hello all, I am using Simulink design optimization with parallel computing toolbox to tune some parameters( usually 10-15), the...

14년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
Exporting data sets to excel
doc xlswrite

14년 초과 전 | 0

답변 있음
Making change with coins, problem (greedy algorithm)
you are writing on to money again and you have an infinite loop function[coins] = change12(money) %initial amounts...

14년 초과 전 | 1

| 수락됨

답변 있음
Help with an error
MATLAB is case sensitive, replace your Nt = zeros(n,3) i = 1, MATLAB does not allow indices to be '0';

14년 초과 전 | 1

| 수락됨

답변 있음
find the 3 maximum elements and their index
help sort

14년 초과 전 | 1

| 수락됨

답변 있음
error in code
this line k(i+1;:)=k(i;:)+h*F_tanker(x,kat(i)) ; should be k(i+1,:)=k(i,:)+h*F_tanker(x,kat(i)) ; g...

14년 초과 전 | 0

답변 있음
How to write a function to display two messages to the user (in Matbal 2011)?
helloNames('name1', 'name2') should work

14년 초과 전 | 0

답변 있음
Place new sheet at the begining using XLSWRITE
I am not sure if you can place it first, may be you can write to Sheet1 and rename it <http://www.mathworks.com/support/solu...

14년 초과 전 | 0

| 수락됨

답변 있음
how to select desired row
help sortrows

거의 15년 전 | 0

답변 있음
Generating a pdf file using Matlab
you can use Publish if report generator is not available http://www.mathworks.com/help/releases/R2011a/techdoc/ref/publis...

거의 15년 전 | 0