Can we create sparse matrix of symbolic variables?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Luqman Saleem
el 25 de Abr. de 2019
Comentada: Mohammad Hossain Kochakzadeh
el 28 de Abr. de 2020
How can I create sparse matrix of symbolic variables?
I have a matrix which can have only
and
values where t and
are some real numbers. Almost 90% of the matrix elements are zeros.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/216391/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/216392/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/216393/image.png)
I tried to create sparse matrix using "sparse()" function but it gives the following error
Undefined function 'sparse' for input arguments of type 'sym'
Is there any way around this problem?
1 comentario
Respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!