A résolu


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 mois il y a

A résolu


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 mois il y a

A résolu


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 mois il y a

A résolu


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 mois il y a

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

11 mois il y a | 1 réponse | 0

1

réponse

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

11 mois il y a | 1 réponse | 0

1

réponse

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.

11 mois il y a | 1 réponse | 0

1

réponse

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

12 mois il y a | 2 réponses | 0

2

réponses

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

presqu'un an il y a | 1 réponse | 0

1

réponse

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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]

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Temperature Conversion 2

plus d'un an il y a

A résolu


Temperature Conversion 1

plus d'un an il y a

A résolu


to the 2 all elements
to the 2 all elements

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Draw a '0' in a one matrix!

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

Charger plus