Azzera filtri
Azzera filtri

How to diplay the printf statement which is written in S-function?

18 visualizzazioni (ultimi 30 giorni)
Hello MATLAB Frndzz,
I am using R2011b linux version... In s-function i have used printf statement like printf("Unable to open PCI Image");
So when i run s-function it has to display that in Command window or somewhere in MATLAB.. Dont mind about linux or windows version... Just i need support for my question...
Thanks in advance...
---ravi

Risposta accettata

Kaustubha Govind
Kaustubha Govind il 10 Lug 2013
Modificato: Kaustubha Govind il 10 Lug 2013
You can use ssPrintf.
  1 Commento
Ravi
Ravi il 11 Lug 2013
printf("0x%x",idata.pciAddress); printf("0x%x",idata.vmeAddress); printf("0x%d",idata.size); printf("0x%d",idata.dataWidth); printf("0x%d",idata.vmeCycle);
if i use ssprintf here... the error is "undefined reference to ssprintf" & warning: incompatible implicit declaration of built-in function printf

Accedi per commentare.

Più risposte (1)

Mohammad Kia
Mohammad Kia il 17 Giu 2017
do not include stdio.h in your code, it will re-target the standard io functions. it will work.

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by