How can I generate code from the system I've designed in the fuzzy logic designer?
Ahora está siguiendo esta pregunta
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
Se ha producido un error
No se puede completar la acción debido a los cambios realizados en la página. Vuelva a cargar la página para ver el estado actualizado.
0 votos
Respuesta aceptada
0 votos
- Design your fuzzy logic system using the “Fuzzy Logic Designer tool”. Once you've defined your input variables, membership functions, fuzzy rules, and output variables, export the system to the MATLAB workspace. You can do this by selecting "File" > "Export" > "To Workspace".
- Bring your exported fuzzy system variable into Simulink using a "Fuzzy Logic Controller" block. This block allows you to incorporate fuzzy logic functionality into your Simulink model. You can find this block in the Simulink Library Browser.
- In the Fuzzy Logic Controller block, specify the name of your fuzzy logic structure (e.g., "FIS"). This structure contains all the fuzzy logic rules and parameters that you defined earlier in the Fuzzy Logic Designer. You can customize the settings of the Fuzzy Logic Controller block to suit your specific application.
- Once the fuzzy logic controller is integrated into your Simulink model, you can simulate the model to observe how the fuzzy logic system behaves with specific inputs. This allows you to validate the functionality of your fuzzy logic system within the context of your overall system design.
- When your Simulink model is complete and you're ready to generate code, click on the "Build Model" button (or press Ctrl+B). This initiates the code generation process. Upon successful completion of the build process, you'll find a new folder named "yourModel_grt_rtw" in your current directory. This folder contains all the generated source and header code files for your model.


6 comentarios


Más respuestas (0)
Categorías
Más información sobre Fuzzy Logic in Simulink en Centro de ayuda y File Exchange.
Etiquetas
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
