String into plot properties
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Rene Riha
el 17 de Mzo. de 2018
Comentada: Rik
el 17 de Mzo. de 2018
Hello, how can I insert string into plot properties? For example I have cell u=[{'k*'}, {'k-'}] and I want plot(x, y, u(1)) but this shows 'Invalid first data argument'. Any solutions? Thank you very much.
1 comentario
Rik
el 17 de Mzo. de 2018
Actually, it looks like the x is the first problem you're having. The second problem is that you're using matrix indexing to get a cell in your plot. You should use plot(x, y, u{1})
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations 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!