FillPattern of a Rectangle
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mehran Naghizadehrokni
el 1 de Mzo. de 2020
Respondida: Guillaume
el 1 de Mzo. de 2020
I found a function for drawing a rectangle and filling with DiagonalLines. Below is the function:
plot::Rectangle(xmin .. xmax, ymin .. ymax, <a = amin .. amax>, options)
However, the problem is when I write this function I receive the error message:
Invalid use of operator.
Even I tried the example of Matlab but again I got the same eror message.
2 comentarios
Guillaume
el 1 de Mzo. de 2020
As per your link, that function works in a mupad notebook (which are now deprecated), so obvious question: Are you using it in a mupad notebook? If you aren't and are trying that at the matlab command prompt or in a matlab script/live script/function then yes, you're going to have errors. The function is not available there.
Respuesta aceptada
Guillaume
el 1 de Mzo. de 2020
Unfortunately for you, there is no such function in matlab. You may search the FileExchange to see if somebody has implemented something like that, otherwise I'm afraid you'll have to draw the diagonal lines yourself with a bunch of line calls in addition to the rectangle call.
0 comentarios
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!