Answered
Could you please tell me why the last part for the descending order isn“t working? Thank you!
Hi, I will try to guess what you mean: You want it sorted in ascending order after the first column and descending at the ...

8 years ago | 1

Answered
Basic help with simulink model
Hi, to measure an efficiency of a technical structure you have to calculate the ratio of the power you get out of this techni...

8 years ago | 1

| accepted

Answered
How to access the result of Curve Fit App in the workspace?
Hi, when you are in the fitting app right click on the model you want to export: <</matlabcentral/answers/uploaded_files/1...

8 years ago | 1

| accepted

Answered
Linprog Error MATLAB R2017B
Hi, see this: <https://de.mathworks.com/matlabcentral/answers/93148-why-do-i-receive-the-error-attempt-to-execute-script-f...

8 years ago | 0

| accepted

Answered
Set default startup folder to userprofile
Hi again, write a script named startup.m and save it in one of the search paths of matlab. This script will be execut...

8 years ago | 0

Answered
Set default startup folder to userprofile
Hi, see here: <</matlabcentral/answers/uploaded_files/120242/start_folder.PNG>> - Note that unless you include the f...

8 years ago | 0

Answered
How do i calculate inverse Laplace of below equation?
Hi, i think you look for the ilaplace-function. In your case: f = ilaplace(rho,s,x) See also here: <https://de.ma...

8 years ago | 0

Answered
why is the "pretty" command does not work in the script,but works when I press it in the command windo?
Hi, try this: syms A D k x_0 eqn_1=A*(exp(k*x_0)-exp(-k*x_0))==D*exp(-k*x_0) eqn_2=-k*D*exp(-k*x_0)-k*A*(...

8 years ago | 0

Answered
Find the position index of vector array
Hi, you can use the code from the following example for your purpose: A = [1 2 3 10 6 0.999 -3 -5;... -3 -4 -10 ...

8 years ago | 0

| accepted

Answered
Finding integers in an array
Hi, try this: A = [5 0.1 -3 -4 -0.5 9 0 11 12 5 0.5] A = Columns 1 through 5 5.0000 0....

8 years ago | 2

| accepted

Answered
Trying to fill the area under the function up to the dotted line.... can't figure out how to get area or fill functions to work
Hi, i suppose you wanted to achieve this: <</matlabcentral/answers/uploaded_files/119123/fill%20area.PNG>> to do so i c...

8 years ago | 0

| accepted

Solved


Area of a circle
Find the value for area of the circle if diameter is given

8 years ago

Solved


The answer to life the universe and everything
Write a function that gives the answer to life the universe and everything to every input except the input is 42. In this case t...

8 years ago

Solved


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

8 years ago

Answered
How to convert idss model of system into transferfunction?
Hi, i think i could solve this by using the following code / functions: sys=n4sid(data,1); [A,B,C,D,K] = idssdata(sys...

8 years ago | 0

| accepted

Answered
How to simplify a symbolic polynomial with respect to x?
Hi, use the collect command: syms a b c x equ = (x-a)*(x-b)+(x-c) f = collect(equ) gives: f = ...

8 years ago | 2

| accepted

Solved


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

8 years ago

Answered
How to convert idss model of system into transferfunction?
Hi, you should use the idssdata command to get the state space matrices A, B, C, D, K from your identified model: ...

8 years ago | 1

Solved


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

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

8 years ago

Answered
How can i solve an equation with an integral when the upper bound is the unknown variable?
Hi, . *If:* - all variables except t (upper bound) are known, - assuming that Walter (as usual) is right with his co...

8 years ago | 0

| accepted

Answered
How to adapt the matlab code which is produced by classification learner?
Hi, You can export the model in 3 ways. Usually the best way is to export matlab code to perform further calculations and ch...

8 years ago | 0

| accepted

Answered
matlab runs without answers after windows update
Hi, there are some Problems since the Windows update regarding symbolic toolbox in 2017b & 2018a. See here: <https://de.ma...

8 years ago | 0

Answered
using the command syms matlab does not work any more
Hi, there are some Problems since the Windows update regarding symbolic toolbox in 2017b & 2018a. See here: <https://de.ma...

8 years ago | 0

Answered
Conversion of a generic Simulink model into a transfer function
Hi, for this purpose there is the linmod or the linmod2 function. It gives you the matrices A,B,C & D fro...

8 years ago | 0

Solved


Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

8 years ago

Solved


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

8 years ago

Solved


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

8 years ago

Answered
I am getting this error "The following error occurred converting from sym to double: DOUBLE cannot convert the input expression into a double array." for this code.Please help me.
Hi, using symbolic values isnt possible for your purpose. You can choose between 2 options: 1.) use preal command ...

8 years ago | 2

| accepted

Load more