string data in function
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Muhammad
el 28 de Mayo de 2021
i have following functioin
function data(a,b,c)
display(a);
display(b+c);
% here 'a' should be string and rest will be the numbers
end
i have to give values to a,b,c while calling function
so how i can
1 comentario
Respuesta aceptada
Star Strider
el 28 de Mayo de 2021
Perhaps something like this —
data('Character Vector', pi, 42)
data("String Variable", pi, pi)
function data(a,b,c)
display(a);
display(b+c);
% here 'a' should be string and rest will be the numbers
end
.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!