문제를 풀었습니다


Repeat string n times
* You will be provided a string (s = 'string1_') * a starting point (num1 = 6) (always bigger than or equal to zero) * and n (...

10년 초과 전

문제를 풀었습니다


Go back n times
You will be given a column vector (such as x = [1; 2; 3; 4; 5; 6; 7; 8]). If (n=3) you will return following; [ 1 NaN NaN Na...

10년 초과 전

문제를 풀었습니다


Low level NaN
* I have a dataset. Columns represents different variables. * A variable may start with NaN or any double type number. * If i...

10년 초과 전

문제를 풀었습니다


Calculate trends in time series
Create a new variable that has trends in input series. If _t+1_ is bigger than or equal to _t_, than trend in _t_ will be 1, oth...

10년 초과 전

문제를 풀었습니다


Dealing with correlation results!
In this problem we would like to transform correlation coefficient MATRIX to a VECTOR which includes only unique elements of coe...

10년 초과 전

문제를 풀었습니다


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

10년 초과 전

문제를 풀었습니다


Get the array of sum for three consecutive numbers in an array
Get the array of sum, for three consecutive numbers in an array. if Input 'x' does not have at-least 3 elements then 'y' shou...

10년 초과 전

문제를 풀었습니다


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

10년 초과 전

문제를 풀었습니다


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

10년 초과 전

문제를 풀었습니다


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

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년 초과 전

문제를 풀었습니다


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

10년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


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

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년 초과 전

제출됨


hamiltonian(Graph, Source, Destination)
This MATLAB function can be used to find Hamiltonian Path or Cycle

10년 초과 전 | 다운로드 수: 1 |

5.0 / 5

제출됨


dijkstra(Graph, Source, Destination, restrict2Nodes)
Dijkstra's Algo to find shortest path, with ability to restrict the path through particular nodes

10년 초과 전 | 다운로드 수: 1 |

4.0 / 5

질문


run C++ program in using MATLAB
I have a main.cpp code including all necessary functions in one file (i.e., it is not a function, full code with main). Can I...

거의 11년 전 | 답변 수: 1 | 0

1

답변

질문


use CPLEX from MATLAB
I have a *text* file of _lp_ problem Minimize 5.8 x_1 + 3 x_2 subject to x_1 + 2.1 x_2 = 6 3 x_2 ...

거의 11년 전 | 답변 수: 0 | 0

0

답변

답변 있음
C++ to matlab(m-file) without mex
final matlab code: input1 = fopen('exp.txt','w'); fill = '02'; for i=0:1:1 for j=0:1:11 str = s...

거의 11년 전 | 0

질문


C++ to matlab(m-file) without mex
I have a C++ code: #include <iostream> #include <fstream> #include <iomanip> // std::setfill, std::setw u...

거의 11년 전 | 답변 수: 3 | 0

3

답변

질문


C++ to matlab(m-file) without mex
I have a C++ code: #include <iostream> #include <fstream> #include <iomanip> // std::setfill, std::setw u...

거의 11년 전 | 답변 수: 0 | 0

0

답변

질문


Find State Space Equation
<</matlabcentral/answers/uploaded_files/9565/problem.png>> i hv a 3rd order System, a 7th order system, they are connected as...

거의 12년 전 | 답변 수: 0 | 0

0

답변

질문


stop/ break 'sim' and continue to the next step depending upon elapsed time
{ Prog.... .... ... tic sim('model', ConfigSet); toc ... Prog continues ... } If I want or stop/ break ...

대략 12년 전 | 답변 수: 0 | 0

0

답변

문제를 풀었습니다


Signed Magnitude
For a given input vector, return the value that is furthest from zero. For example, if x = [1 2 -12] return -12.

대략 12년 전

질문


How to connect simulink block and simpowersystem block
<<http://imagesup.net/?di=1013779475062>> I want to connect these two blocks. How can I?

12년 초과 전 | 답변 수: 3 | 0

3

답변

답변 있음
How to open a specific EXCEL sheet with the function _fopen_?
Hope this help <http://www.mathworks.in/help/matlab/ref/xlsread.html>

12년 초과 전 | 0

제출됨


Bound Values of an array
Check whether value of the array within specified range or not and change accordingly

12년 초과 전 | 다운로드 수: 3 |

3.7 / 5

더 보기