Professional Interests: Controls, Verification and Validation, Safety Critical, Aerospace, Formal Methods

Answered

Index exceeds matrix dimensions

As a rule please use meaningful variable names. Simulink is a keyword. I get a feeling you are trying to store that data variabl...

Index exceeds matrix dimensions

As a rule please use meaningful variable names. Simulink is a keyword. I get a feeling you are trying to store that data variabl...

mehr als ein Jahr ago | 0

Answered

Aerospace and Flight Controls

https://in.mathworks.com/matlabcentral/answers/25688-modelling-and-simulation-of-a-flight-control-system This was answered long...

Aerospace and Flight Controls

https://in.mathworks.com/matlabcentral/answers/25688-modelling-and-simulation-of-a-flight-control-system This was answered long...

mehr als ein Jahr ago | 0

| accepted

Answered

How can I easily give all of my simulink random number generators different but controlable seeds?

I use an array of seed say 10x1. In a for loop i use the datetime to pick a random seed and assign it to the seed array. This ge...

How can I easily give all of my simulink random number generators different but controlable seeds?

I use an array of seed say 10x1. In a for loop i use the datetime to pick a random seed and assign it to the seed array. This ge...

mehr als ein Jahr ago | 0

Answered

Why my simulink model is running in R2018b but not in R2015a ?

You can try the Signal Specification block from Simulink >> Signal Attributes >>. Perhaps this will work. Enable data type and s...

Why my simulink model is running in R2018b but not in R2015a ?

You can try the Signal Specification block from Simulink >> Signal Attributes >>. Perhaps this will work. Enable data type and s...

mehr als ein Jahr ago | 0

Answered

Why my simulink model is running in R2018b but not in R2015a ?

Do you use variable being passed inside as an array. The matlab function in the simulink may require the array size to be define...

Why my simulink model is running in R2018b but not in R2015a ?

Do you use variable being passed inside as an array. The matlab function in the simulink may require the array size to be define...

mehr als ein Jahr ago | 1

| accepted

Answered

Fitting simulink model with optimization toolbox?

I use a global variable for this and this works well. Define the tunable parameters in simulink as X array. X(1) is a gain in th...

Fitting simulink model with optimization toolbox?

I use a global variable for this and this works well. Define the tunable parameters in simulink as X array. X(1) is a gain in th...

mehr als 2 Jahre ago | 0

Answered

Calculate gain and phase margin on simulink

This is interesting. Can you define a time response equivalent instead (second order response) and tweak your controller to get ...

Calculate gain and phase margin on simulink

This is interesting. Can you define a time response equivalent instead (second order response) and tweak your controller to get ...

mehr als 2 Jahre ago | 0

Answered

Creation of a simulink block from a Mupad expression containing subscripts.

Use Mux block to get theta 1 ... N. You need so many inputs. The Mux will create the array for you. Take this as a single input ...

Creation of a simulink block from a Mupad expression containing subscripts.

Use Mux block to get theta 1 ... N. You need so many inputs. The Mux will create the array for you. Take this as a single input ...

mehr als 2 Jahre ago | 0

| accepted

Answered

How to set flags in Simulink?

Is the problem correct? How can flag be 1 in the else condition? Can you provide the matlab code with proper indentations. Try a...

How to set flags in Simulink?

Is the problem correct? How can flag be 1 in the else condition? Can you provide the matlab code with proper indentations. Try a...

mehr als 2 Jahre ago | 0

Answered

Simulation Time and Date

Try and make a simulink block with 6 outputs Year, Month, Day, hr min , sec. Divide the clock block output with the respective s...

Simulation Time and Date

Try and make a simulink block with 6 outputs Year, Month, Day, hr min , sec. Divide the clock block output with the respective s...

mehr als 2 Jahre ago | 0

Simulation Time and Date

Try and make a simulink block with 6 outputs Year, Month, Day, hr min , sec. Divide the clock block output with the respective s...

mehr als 2 Jahre ago | 0

Answered

How to run ode15s function for several times

Try a simple Euler integration. Xd = f(a,b,c ...). x = Xd*dt+x; store the values of x in an array. See if this works.

How to run ode15s function for several times

Try a simple Euler integration. Xd = f(a,b,c ...). x = Xd*dt+x; store the values of x in an array. See if this works.

mehr als 2 Jahre ago | 0

Answered

I have an optimization problem where i need to minimize the Total_Cost. I have the equations in AMPL format and i need to convert it to MATLAB. Can anybody help and correct my answer?

sum1 = sum1 + tcn{i;j}; The ';' should be perhaps a ','. It is easier if you can represent as a matrix with [] square brackets. ...

I have an optimization problem where i need to minimize the Total_Cost. I have the equations in AMPL format and i need to convert it to MATLAB. Can anybody help and correct my answer?

sum1 = sum1 + tcn{i;j}; The ';' should be perhaps a ','. It is easier if you can represent as a matrix with [] square brackets. ...

fast 3 Jahre ago | 0

Answered

Threshold / Crossing algorithm given a signal

You can use the find function and get the first index where the data crosses the threshold. Set all that data from current locat...

Threshold / Crossing algorithm given a signal

You can use the find function and get the first index where the data crosses the threshold. Set all that data from current locat...

fast 3 Jahre ago | 0

Answered

Iteration between GUI and Excel file

Try reading the excel file using xlsread, processing it in Matlab and use xlswrite to write back to excel file. The help is quit...

Iteration between GUI and Excel file

Try reading the excel file using xlsread, processing it in Matlab and use xlswrite to write back to excel file. The help is quit...

fast 3 Jahre ago | 0

Answered

Files not showing up in 'current folder'

I am not sure if this is the right answer. I see a '-' in the name. Can you change it to an underscore '_' and check?

Files not showing up in 'current folder'

I am not sure if this is the right answer. I see a '-' in the name. Can you change it to an underscore '_' and check?

fast 3 Jahre ago | 0

Answered

Having Trouble with While loop not renewing a value

A good idea would be to not use a while loop and give one or two data points as a check if all the steps are behaving as expecte...

Having Trouble with While loop not renewing a value

A good idea would be to not use a while loop and give one or two data points as a check if all the steps are behaving as expecte...

fast 3 Jahre ago | 1

| accepted

Answered

Why am I not getting the table named SelectedTable as an output? How to rectify such errors in MATLAB?

Could you explain what you are trying to do?

Why am I not getting the table named SelectedTable as an output? How to rectify such errors in MATLAB?

Could you explain what you are trying to do?

fast 3 Jahre ago | 0

Answered

How do I determine transfer function from input/output data?

If it was filter sort of thing the TF would be available as a X(k+1) = A x(k) + B u(k) form. This would make sense to derive in ...

How do I determine transfer function from input/output data?

If it was filter sort of thing the TF would be available as a X(k+1) = A x(k) + B u(k) form. This would make sense to derive in ...

fast 3 Jahre ago | 0

Answered

problem using fminsearch, as parameters that I want to optimize is not input for the handle function

I am not sure how to do this. I have been using global in my function and optimizing using fminsearch (fmins before). It always ...

problem using fminsearch, as parameters that I want to optimize is not input for the handle function

I am not sure how to do this. I have been using global in my function and optimizing using fminsearch (fmins before). It always ...

fast 3 Jahre ago | 0

Answered

How to get a for loop to update its iterations on a variable that can change.

Looks like you have the data and you are doing post processing. Try not to use the for loop. Use the find for the complete array...

How to get a for loop to update its iterations on a variable that can change.

Looks like you have the data and you are doing post processing. Try not to use the for loop. Use the find for the complete array...

fast 3 Jahre ago | 0

Answered

derivative block doesn't answer correctly.

You require a set of integrator. Your input is ddot(Y2ref) and dot(Y1ref). Use integrator in series to get ddot(Y2ref)->dot(Y2re...

derivative block doesn't answer correctly.

You require a set of integrator. Your input is ddot(Y2ref) and dot(Y1ref). Use integrator in series to get ddot(Y2ref)->dot(Y2re...

fast 3 Jahre ago | 0

Answered

I need help modeling a Temperature controller for a furnace with PID on Matlab and SIMULINK with several conditions

You can use a rate limiter with variable limits. Put a logic to check the output temperature of the plant and change the rate li...

I need help modeling a Temperature controller for a furnace with PID on Matlab and SIMULINK with several conditions

You can use a rate limiter with variable limits. Put a logic to check the output temperature of the plant and change the rate li...

fast 3 Jahre ago | 0

| accepted

Answered

Simulink: too many input arguments

Check the number of inputs to the mux block. Check their dimensions. If the inputs to the block are three from one port you may ...

Simulink: too many input arguments

Check the number of inputs to the mux block. Check their dimensions. If the inputs to the block are three from one port you may ...

fast 3 Jahre ago | 0

| accepted

Answered

Code to compare cells with a range in MATLAB

Never use Matlab like a C code interpreter. Matlab has elegant function that help you do data manipulation very easily. You can ...

Code to compare cells with a range in MATLAB

Never use Matlab like a C code interpreter. Matlab has elegant function that help you do data manipulation very easily. You can ...

fast 3 Jahre ago | 0

Answered

how to write matlab code for following problem

*For the simulation* Make a large vector a multiple of 30 (why?). For the first set with probability of 50% make half the vecto...

how to write matlab code for following problem

*For the simulation* Make a large vector a multiple of 30 (why?). For the first set with probability of 50% make half the vecto...

fast 3 Jahre ago | 0

Answered

how to optimize an input variable to a function to obtain a set point output variable?

Hi I am not sure I fully understand the question. What are IC1(), IC2() etc. They could be some complicated functions. You can ...

how to optimize an input variable to a function to obtain a set point output variable?

Hi I am not sure I fully understand the question. What are IC1(), IC2() etc. They could be some complicated functions. You can ...

fast 3 Jahre ago | 0

Submitted

A Three by Three Puzzle

Solve the 3x3 puzzle using Design Verifier

fast 3 Jahre ago | 1 download |

Submitted

The Schiaparelli Analysis

This is a simple analysis of the Schiaparelli failure using formal methods

fast 3 Jahre ago | 3 downloads |

Submitted

Formally Correct Control Elemental Blocks

This has a set of blocks which are formally correct in functionality

etwa 3 Jahre ago | 1 download |