Resuelto


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

11 meses hace

Resuelto


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

11 meses hace

Resuelto


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

11 meses hace

Resuelto


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

11 meses hace

Pregunta


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

11 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


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

11 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


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.

11 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


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

12 meses hace | 2 respuestas | 0

2

respuestas

Pregunta


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

casi 1 año hace | 1 respuesta | 0

1

respuesta

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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]

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


Temperature Conversion 2

más de 1 año hace

Resuelto


Temperature Conversion 1

más de 1 año hace

Resuelto


to the 2 all elements
to the 2 all elements

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


Draw a '0' in a one matrix!

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Cargar más