Solved


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

meer dan een jaar ago

Solved


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

meer dan een jaar ago

Solved


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

meer dan een jaar ago

Solved


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

meer dan een jaar ago

Question


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

meer dan een jaar ago | 1 answer | 0

1

answer

Question


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

meer dan een jaar ago | 1 answer | 0

1

answer

Question


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.

meer dan een jaar ago | 1 answer | 0

1

answer

Question


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

meer dan een jaar ago | 2 answers | 0

2

answers

Question


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

meer dan een jaar ago | 1 answer | 0

1

answer

Solved


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

bijna 2 jaar ago

Solved


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

bijna 2 jaar ago

Solved


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

bijna 2 jaar ago

Solved


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

bijna 2 jaar ago

Solved


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

bijna 2 jaar ago

Solved


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

bijna 2 jaar ago

Solved


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]

bijna 2 jaar ago

Solved


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

bijna 2 jaar ago

Solved


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

bijna 2 jaar ago

Solved


Temperature Conversion 2

bijna 2 jaar ago

Solved


Temperature Conversion 1

bijna 2 jaar ago

Solved


to the 2 all elements
to the 2 all elements

bijna 2 jaar ago

Solved


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

bijna 2 jaar ago

Solved


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

bijna 2 jaar ago

Solved


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

bijna 2 jaar ago

Solved


Draw a '0' in a one matrix!

bijna 2 jaar ago

Solved


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

bijna 2 jaar ago

Solved


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

bijna 2 jaar ago

Solved


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

bijna 2 jaar ago

Solved


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

bijna 2 jaar ago

Solved


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

bijna 2 jaar ago

Load more