Professional Interests: Model based design

Question

Validation error, when configuring enable subsystem as autosar component?

Hi, when using the enable system's, states when enabling of enable port, if we set as "reset", the following error is popping o...

6 years ago | 0 answers | 0

Answered

covert matlab program to simulink block

Try using *'s-function'* block (Level-1).

covert matlab program to simulink block

Try using *'s-function'* block (Level-1).

7 years ago | 1

Answered

Undefined symbols for architecture x86_64 error. Mex S-Function

Try using dgesv(matrix_size, brnhs, a, matrix_size, ipvt, b, matrix_size, info); Because, when you are passing as an poin...

Undefined symbols for architecture x86_64 error. Mex S-Function

Try using dgesv(matrix_size, brnhs, a, matrix_size, ipvt, b, matrix_size, info); Because, when you are passing as an poin...

7 years ago | 1

Answered

[UNSOLVED, but ignored] Simulink model with red border and outlinks

Patrick, There are many sources of error/ warning in your model, am just listing something 1. the error may be due to *inp...

[UNSOLVED, but ignored] Simulink model with red border and outlinks

Patrick, There are many sources of error/ warning in your model, am just listing something 1. the error may be due to *inp...

7 years ago | 1

Answered

m files cannot run

Use a string instead of numbers for naming *.m file (e.g. abc.m instead of 1.m). then try it

m files cannot run

Use a string instead of numbers for naming *.m file (e.g. abc.m instead of 1.m). then try it

7 years ago | 1

Answered

Error during Code Generation

Hi, You may missed an anyone or both of the important activity for code generation, 1) select the mex compiler proper>> mex ...

Error during Code Generation

Hi, You may missed an anyone or both of the important activity for code generation, 1) select the mex compiler proper>> mex ...

7 years ago | 0

| accepted

Answered

how to get rid of imaginary numbers, after a root.

time = roots([-g./2, v0y, y0-H]); time = max(time); time=real(time); at=atand((h0*cos(V))/((h0*sin(V))-(g*tid)))

how to get rid of imaginary numbers, after a root.

time = roots([-g./2, v0y, y0-H]); time = max(time); time=real(time); at=atand((h0*cos(V))/((h0*sin(V))-(g*tid)))

7 years ago | 0

| accepted

Answered

while running the following code i got an error as Subscript indices must either be real positive integers or logicals.

Refer this link: <http://www.mathworks.in/support/solutions/en/data/1-FA99VQ/index.html?solution=1-FA99VQ>

while running the following code i got an error as Subscript indices must either be real positive integers or logicals.

Refer this link: <http://www.mathworks.in/support/solutions/en/data/1-FA99VQ/index.html?solution=1-FA99VQ>

7 years ago | 0

Answered

How do I select different value of resistances depending on the control input.

Use *MultiportSwitch* To know more, Refer this link: <http://www.mathworks.in/help/simulink/slref/multiportswitch.html>

How do I select different value of resistances depending on the control input.

Use *MultiportSwitch* To know more, Refer this link: <http://www.mathworks.in/help/simulink/slref/multiportswitch.html>

7 years ago | 0

Answered

how to compare two cell array

Refer this: <http://www.mathworks.in/matlabcentral/answers/1052> <http://www.mathworks.in/matlabcentral/newsreader/view_thr...

how to compare two cell array

Refer this: <http://www.mathworks.in/matlabcentral/answers/1052> <http://www.mathworks.in/matlabcentral/newsreader/view_thr...

7 years ago | 1

Answered

marking points in a plot

>> help plot Refer this links as well: <http://www.mathworks.in/matlabcentral/newsreader/view_thread/248714> <http:/...

marking points in a plot

>> help plot Refer this links as well: <http://www.mathworks.in/matlabcentral/newsreader/view_thread/248714> <http:/...

7 years ago | 0

Answered

How to match an input value with values stored in array or a file

A=[1, 3, 4, 1.5; 2, 4, 5, 1.6; 3, 5, 7, 2.2] A_size=size(A); inp_1=input(' '); inp_2=input(' '); ...

How to match an input value with values stored in array or a file

A=[1, 3, 4, 1.5; 2, 4, 5, 1.6; 3, 5, 7, 2.2] A_size=size(A); inp_1=input(' '); inp_2=input(' '); ...

7 years ago | 0

Answered

SIMULINK BUG, or Am I missing something in DATA STORE MEMORY block?

How you are reading the value for DSR B (data store read)?? from workspace?? Is DSR B depends on DSR A output?, If it depends, c...

SIMULINK BUG, or Am I missing something in DATA STORE MEMORY block?

How you are reading the value for DSR B (data store read)?? from workspace?? Is DSR B depends on DSR A output?, If it depends, c...

7 years ago | 0

Answered

Syntax Error: Unknown Function

Refer this link: <http://www.mathworks.in/support/solutions/en/data/1-FA99UB/index.html?solution=1-FA99UB>

Syntax Error: Unknown Function

Refer this link: <http://www.mathworks.in/support/solutions/en/data/1-FA99UB/index.html?solution=1-FA99UB>

7 years ago | 0

Answered

create a test environment with the size 10x10x10cm

>> B = zeros(10,10,10); %Try this

create a test environment with the size 10x10x10cm

>> B = zeros(10,10,10); %Try this

7 years ago | 0

Answered

how to plot only one iteration in for loop?

what is x?..see while plotting the size of _xlabel_ and _ylabel_ should be same.. In ur code x might be ...

how to plot only one iteration in for loop?

what is x?..see while plotting the size of _xlabel_ and _ylabel_ should be same.. In ur code x might be ...

7 years ago | 0

Answered

How to read matrix into a variable increment?

e.g, >> A=[1;2;3;4;5;6]; >> t = 0 : A(1,1) : A(end,1) Are you expecting like this??

How to read matrix into a variable increment?

e.g, >> A=[1;2;3;4;5;6]; >> t = 0 : A(1,1) : A(end,1) Are you expecting like this??

7 years ago | 0

Answered

Issue with fixed point code generation

Hi, In fixedpoint operation, you might used scaling either *binary point or slope and bias*, So the value which you given as ...

Issue with fixed point code generation

Hi, In fixedpoint operation, you might used scaling either *binary point or slope and bias*, So the value which you given as ...

7 years ago | 0

Answered

uitable: Changing the Coloumn Name

>> help uitable or Check this link: <http://www.mathworks.in/help/matlab/ref/uitable.html>

uitable: Changing the Coloumn Name

>> help uitable or Check this link: <http://www.mathworks.in/help/matlab/ref/uitable.html>

7 years ago | 0

Answered

How to color an area at plot surface...

hi, for e,g. x=[1 2 3 4 5]; for i=1:numel(x) f(i)=x(i)^2; g(i)=-x(i)^2+1; end plot(x,f,x,g) ...

How to color an area at plot surface...

hi, for e,g. x=[1 2 3 4 5]; for i=1:numel(x) f(i)=x(i)^2; g(i)=-x(i)^2+1; end plot(x,f,x,g) ...

8 years ago | 0

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

8 years ago

Answered

How to set flags in MATLAB?

Do this, by *if()* operation e.g. if a==0 %do this else if a==1 %do this end

How to set flags in MATLAB?

Do this, by *if()* operation e.g. if a==0 %do this else if a==1 %do this end

8 years ago | 0

Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

8 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

8 years ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

8 years ago

Answered

Change the sign of a particular element in a matrix

find(A==-1)=1 [EDITED, Jan, copied from comments] Better: A(A==-1)=1; or A=abs(A)

Change the sign of a particular element in a matrix

find(A==-1)=1 [EDITED, Jan, copied from comments] Better: A(A==-1)=1; or A=abs(A)

8 years ago | 1

| accepted

Answered

How should I run a simulation in simulink so that the simulation matches the real time clock?

Check this link: <http://www.mathworks.in/matlabcentral/answers/17148>

How should I run a simulation in simulink so that the simulation matches the real time clock?

Check this link: <http://www.mathworks.in/matlabcentral/answers/17148>

8 years ago | 0

| accepted

Answered

How to link a plot or continous data from M-file to Simulink Model

Have you tried with *From workspace* block? To know more, refer this link: <http://www.mathworks.com.au/help/simulink/slref/...

How to link a plot or continous data from M-file to Simulink Model

Have you tried with *From workspace* block? To know more, refer this link: <http://www.mathworks.com.au/help/simulink/slref/...

8 years ago | 1

| accepted