please help me to rewrite this function code correctly
Afficher commentaires plus anciens
Serobinfo=fopen('asri.m','w');
fprintf(Serobinfo,'function [B,C]=as(nudat,tdr)\n\nD=nudat;\nE=tdr;\nif D==1\nif E==1\nB={'q1' 'pi/2' '0' '7.53';'q2' '0' '16.83' '0';'q3' '0' '11.43' '0';'q4' 'pi/2' '0' '8.20';'q5' '0' '0' '9.20';'-g1' '0' '0' '0';'0' '0' 'g2' '0';'g3' '0' '0' '0';'0' '0' 'g4' '0'};\nC=9;\nelse\nerrordlg('No tenemos ese robot disponible','Elija otro opción por favor');\nend\nelse\nerrordlg('Ninguno de los robots cumple para esos grados de libertad','Elija otro opción por favor');\nend');
fclose(Serobinfo);
The problem is because the following error arises in matlab as it is written Error: Unexpected MATLAB expression.
(if that it's imposible a short explanation could be helpful) Thanks in advance
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!