문제를 풀었습니다


Solve a System of Linear Equations
Example: If a system of linear equations in x₁ and x₂ is: 2x₁ + x₂ = 2 x₁ - 4 x₂ = 3 Then the coefficient matrix (A) is: 2 ...

대략 1년 전

문제를 풀었습니다


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

대략 1년 전

문제를 풀었습니다


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

대략 1년 전

문제를 풀었습니다


Calculate Amount of Cake Frosting
Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...

대략 1년 전

질문


Which outport of stateflow block will provide the proper output data?
Using runtime object I found that for "sldemo_autotrans" model there are four OutputPorts. But the correct output is obtained i...

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

1

답변

질문


How to add event listener to a stateflow block?
In simulink blocks using "add_exec_event_listener" listeners can be added,in similar way does matlab have any specific way to ad...

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

1

답변

질문


How can I get the execution order of blocks in a Simulink model by means of a MATLAB script?
I am in need of getting the order of execution of each blocks in a Simulink model.Help me with this.

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

1

답변

질문


How to plot simulation results in a GUI while the simulation is running?
I need to plot the simulation results in a GUI while simulation is running, so that the plot will be updated whenever the simula...

대략 1년 전 | 답변 수: 2 | 0

2

답변

질문


Is there any possible way to access the workspace variables of a MATLAB instance using process id obtained from Task Manager?
I have fetched the process id using: TASKLIST /FI "IMAGENAME eq MATLAB.exe", which gave me a number(5684). Now I am in need of...

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

1

답변

문제를 풀었습니다


Return the first and last characters of a character array
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

1년 초과 전

문제를 풀었습니다


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

1년 초과 전

문제를 풀었습니다


Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

1년 초과 전

문제를 풀었습니다


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

1년 초과 전

문제를 풀었습니다


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

1년 초과 전

문제를 풀었습니다


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

1년 초과 전

문제를 풀었습니다


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]

1년 초과 전

문제를 풀었습니다


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

1년 초과 전

문제를 풀었습니다


Temperature Conversion 3
Given a temperature in Celcius, convert it to Fahrenheit.

1년 초과 전

문제를 풀었습니다


Temperature Conversion 2

1년 초과 전

문제를 풀었습니다


Temperature Conversion 1

1년 초과 전

문제를 풀었습니다


to the 2 all elements
to the 2 all elements

1년 초과 전

문제를 풀었습니다


the average value of the elements
Calculate the average value of the elements in the array

1년 초과 전

문제를 풀었습니다


Double all elements in the array
Duplicate all elements in the array

1년 초과 전

문제를 풀었습니다


calculate the length of matrix
input 1 array, calculate the length

1년 초과 전

문제를 풀었습니다


Draw a '0' in a one matrix!

1년 초과 전

문제를 풀었습니다


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

1년 초과 전

문제를 풀었습니다


Make roundn function
Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

1년 초과 전

문제를 풀었습니다


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

1년 초과 전

문제를 풀었습니다


Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

1년 초과 전

문제를 풀었습니다


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

1년 초과 전

더 보기