Resuelto


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

más de 10 años hace

Resuelto


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

más de 10 años hace

Resuelto


Add two numbers
Given a and b, return the sum a+b in c.

más de 10 años hace

Resuelto


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

más de 10 años hace

Resuelto


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

más de 10 años hace

Resuelto


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

más de 10 años hace

Respondida
I dont see an error
display([' Nif = ',num2str(Nif,'% 10.2f') ' [-]']); missing a ,(comma) after ' Nif = '

más de 10 años hace | 0

Respondida
Simulink Constant Block multiple string input
instead of putting qq =[a b c] in constant block update the constant value as [ a b c ]

más de 10 años hace | 0

Respondida
What does this line does? "H(ind(:,k), ind(:,k))=S"
assuming k = 4 and ind is an matrix of 4x6(4 rows x 6 columns ) -->ind(:,k) will give u all elements of column 4(value of k) in...

más de 10 años hace | 0

Respondida
Can anyone interpret this short code for me?
I guess T_test should get values from T_min to T_max with the interval of ( or step value of ) eps/t_span

más de 10 años hace | 0

| aceptada

Pregunta


how to know whether the model running is in simulation model, code gen mode or in rapid accel mode in script?
In model initialization , If I want to know whether the model running is in simulation model code gen mode or rapid accel mode ...

más de 10 años hace | 0 respuestas | 0

0

respuestas

Pregunta


What is a non-inlined S function
I was trying to create my own library blocks for a model. It simulated , but when i tried to make a build it throw-ed an error ...

más de 10 años hace | 2 respuestas | 0

2

respuestas

Respondida
I am trying debugg a S function on Visual studio , but I Matlab 2010A cannot locate the visual 2010 compiler , when i do "mex -setup"
Matlab 2010A was launched after Visual studio 2010 , hence visual sudtio didnt had the support for Matlab 2010. They have rele...

más de 10 años hace | 0

| aceptada

Pregunta


how to get the port data inside a mask editor parameter/variable of a subsystem ?
Want to read a data on port in the mask editor . I have an script running (which is called in mask editor),depending upon the v...

más de 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Can we call Per script , from Level 2 S Function ?
Working on S Function of a block. Using C to write it. Need to call a Perl script once the simulation is over . I know ho...

más de 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


I am trying debugg a S function on Visual studio , but I Matlab 2010A cannot locate the visual 2010 compiler , when i do "mex -setup"
I am working on S Functions , need to debug them. Visual Studio 2010 is installed in my 32 bit machine. When I try to select...

más de 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to generate S-Function using legacy tool box for a Function having multiple function calls in it
I am working on S-Function and I am still a beginner. For a simple adder function I was able to generate S-function block and...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Can we call a m-script during model simulation ?:
I want to run a script , which will update some of my parameters in the workspace. Is it possible to call a m-script during mod...

casi 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to read a text or a .c file without comments into a cell array ?
I have a c file name 'function.c' It have code and comments as well comments are noted with '/*' '*/' Or '//' OR sometimes '...

alrededor de 11 años hace | 3 respuestas | 0

3

respuestas

Pregunta


Can we get a handle of any .exe file running in Windows using m-scripts ?
If there is a program running in VB++ or in C-Sharp or in Java , Is it possible to do any kind of automation with them, using ...

alrededor de 11 años hace | 2 respuestas | 0

2

respuestas

Pregunta


What is the range of datatype double in Matlab ?
If we assign any value to a variable , Matlab assigns its data type as double . What is the max range of that variable ?

más de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How can we add a If-action-subsystem to a any model using m-Scripts ?
I am using a script to add blocks in the model ( using add_block function ) Can any one tell me how can i add a "If Action Su...

más de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Can we generate macro function in code, using simulink model and RTW EC auto coder ?
We are currently having lot of for loops , and they are just to fetch the data from a constant array in to a local data array ...

más de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to get a handle of state chart ? and how to read the chart flow using script ?
1.how can I read the number of charts present in the model ? 2.Also how to read a logic inside the state chart ? ( if we consid...

más de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to make a variable available for two functions in scripting
I am working on scripts I have a varaible 'xyz' that will be updated in function_1 and i want to read it in function_2 ho...

más de 11 años hace | 1 respuesta | 0

1

respuesta

Respondida
pls finding error" Undefined function or variable "t"." while executing
just remove 'char' keyword in the 1st line , and make it as t='hello 123' ; t=uint8(t); .. and so on

más de 11 años hace | 0

Respondida
How to increment index value of variable on every click of Push button?
how many variables you have ? are the numbers of variables fixed or they may vary ? If varibales are fixed : suppose we have...

más de 11 años hace | 0

Pregunta


What is the use of acclerator mode and normal mode of simulation ?
There are few simulation modes : Noraml Acclerator Rapid Acclerator PIL SIL External What are the difference between ...

más de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


What is a differece between a constant and Paremeter in Model simulation ?
what is the differene between constants and parameters in stateflow ? Why are these two different objects used , when one can...

más de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


What is .mex file ?
When ever i simulate a model containing state Chart in it, I generally observe mex files being generated in the current folder d...

más de 11 años hace | 1 respuesta | 0

1

respuesta

Cargar más