I am beginner simulink how can i solve this error?

1 visualización (últimos 30 días)
Bahadir Celiktas
Bahadir Celiktas el 30 de Abr. de 2020
Comentada: Ameer Hamza el 1 de Mayo de 2020
I want to do u = y + v as I type the matlab function directly in the form of y + v == u and I get the following error. How can I fix it.

Respuestas (1)

Ameer Hamza
Ameer Hamza el 30 de Abr. de 2020
Bahadir, as I mentioned on your other question. MATLAB does not automatically know how do you want to convert one number to two numbers. You need to specify how to you want to get y and v from the u value. MATLAB does no know what are y and v in the equation: y + v == u. == operator is used in MATLAB for comparison, not to assign a value.
y and v are the output of the block, and u is input. You need to write something like this inside the MATLAB function block.
y = u/2;
v = u/2;
  4 comentarios
Bahadir Celiktas
Bahadir Celiktas el 30 de Abr. de 2020
I can't post because my project is long .I have to simulate reaction wheel pendulum.I'm a little confused because I didn't quite understand how to perform the information given in the book on Simulink.Book Non-linear Control for Underactuated Mechanical Systems chapter 7.Please tell me how can i simulate,thank you very much for answering all my questions.
Ameer Hamza
Ameer Hamza el 1 de Mayo de 2020
Such a project is clearly beyond the scope of websites like MATLAB Answers. We can answer questions related explicitly to MATLAB and Simulink but such a project requires much broader expertise. I suggest you break down your problem into small parts and create new questions only when you face a problem, specifically related to MATLAB.

Iniciar sesión para comentar.

Categorías

Más información sobre Event Functions en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by