How to fix "Out of memory" error
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
LaChelle McMahan
le 30 Sep 2020
Réponse apportée : Jacob Halbrooks
le 30 Sep 2020
I'm trying to run some code but I keep recieving the following error:
Error using zmm_solve_metal_c
Out of memory. Type "help memory" for your options.
I've lookeed at other questions answers and tryied a few suggestions, increase java setting, uncheck the box that limits the array size, etc. the same result keeps happening. I'm using a 500GB computer with 150GB of free space reamining so I dont understand why I'm having this problem. I copied the code I'm running below.
%Ship1 Transmit Site
tx = txsite('Name','Ship 1','Latitude',32.7294, 'Longitude',117.6908, 'Antenna',cavityCircular,'AntennaHeight',34, 'SystemLoss',0, 'TransmitterFrequency',6e9, 'TransmitterPower',10)
%Ship2 Recieving Site
rx = rxsite('Name','Ship 2','Latitude',33.0833, 'Longitude',117.9832, 'Antenna',cavityCircular,'AntennaHeight',34, 'SystemLoss',0, 'ReceiverSensitivity',-89)
%Create the propagation model for heavy rainfall rate.
pm = propagationModel('freespace');
%Calculate the range of transmitter using the rain propagation model and a
%path loss of 89 dB. Output is in meters.
r = range(pm,tx, 89)
%Calculate the pathloss at the receiver using the rain propagation model.
pl = pathloss(pm,rx,tx)
%Signal strength
ss = sigstrength(rx,tx,pm)
0 commentaires
Réponse acceptée
Jacob Halbrooks
le 30 Sep 2020
This is likely due to a mismatch between the resonant frequency of the default cavityCircular antenna and the transmitter frequency. To avoid this problem try using the design function with your antenna object to match the transmitter:
fq = 6e9;
ant = design(cavityCircular,fq);
tx = txsite('Name','Ship 1','Latitude',32.7294, 'Longitude',117.6908, ...
'Antenna',ant,'AntennaHeight',34, ...
'SystemLoss',0, 'TransmitterFrequency',fq, 'TransmitterPower',10)
%Ship2 Recieving Site
rx = rxsite('Name','Ship 2','Latitude',33.0833, 'Longitude',117.9832, ...
'Antenna',ant,'AntennaHeight',34, ...
'SystemLoss',0, 'ReceiverSensitivity',-89)
%Create the propagation model for heavy rainfall rate.
pm = propagationModel('freespace');
%Calculate the range of transmitter using the rain propagation model and a
%path loss of 89 dB. Output is in meters.
r = range(pm,tx, 89)
%Calculate the pathloss at the receiver using the rain propagation model.
pl = pathloss(pm,rx,tx)
%Signal strength
ss = sigstrength(rx,tx,pm)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Satellite and Orbital Mechanics dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!