Resuelto


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

alrededor de 7 años hace

Resuelto


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

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

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

alrededor de 7 años hace

Resuelto


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

alrededor de 7 años hace

Pregunta


How can I get "shown" parameter or similar parameter for Simulink blocks?
Hello everyone, There is a parameter for systems; "shown". when you type ; get_param(gcs, 'shown') %or get_param('vdp', 'show...

alrededor de 7 años hace | 0 respuestas | 0

0

respuestas

Pregunta


How to close block dialog box before it opens or hide it conditionally on Simulink?
Hello, I am trying to create a custom masked block, but when some conditions met -defined in callback script- I don't want the ...

alrededor de 7 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Is there a function to make Simulink window fullscreen in Matlab if it is not?
Hello everyone, I am opening the model with script and I want it to be fullscreen, also need to autoscale is there any functi...

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

1

respuesta

Respondida
How to use handles/pathnames with "delete_line" function?
Alternative Salvation for this problem; using LineHandle, i.e.; MuxLines = get_param(allMuxes{1}, 'LineHandles'); % ...

más de 8 años hace | 0

Pregunta


How to use handles/pathnames with "delete_line" function?
I have block handles and pathnames but delete_line function always gives the error of : "Invalid Simulink object handle". I mean...

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

1

respuesta

Pregunta


Is there a function for finding the specific column number in a cell array?
Helle everyone, I think question is clear but, this is Matlab at all, I have a nx1 cell array and I want to know which column...

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

2

respuestas

Pregunta


How to use dot notation (substructures and fields) with a parameter which has already "dot" in it??
Hello everyone I am new at matlab, so I think this is a very basic thing but I couldn't solve this. I have 1x1 cells that con...

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

1

respuesta

Respondida
Why can't I see parameters when I use get_param?
Okay I found it, but it does not make any sense for me right now. I used get_param('sys/BlockPath', 'DialogParameters') : whi...

más de 8 años hace | 0

| aceptada

Pregunta


Why can't I see parameters when I use get_param?
Hello all! I need to get values from simulink blocks. In order to do that, I need to use _get_param_ i.e get_param( _sys_, 'P...

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

1

respuesta