Plotting The bodee plots extracted from LTSPICE simulator
Mostrar comentarios más antiguos
Hello,
After I simulated a circuit using a LTSPICE simulator and got the bode plots, I wanted to plot these plots using Matlab, so I exported the bode plots to a TXT file (attached to this post) in order to be able to plot them after that using matlab.
after I put the .txt file in the matlab directory, I used the command "dlmread('Data.txt);", nevertheless, Matlab could not read the text file.
Is there a way so that I can read the file and plot it using Matlab?
Respuesta aceptada
Más respuestas (1)
UTKARSH JADLI
el 18 de Abr. de 2019
Editada: UTKARSH JADLI
el 18 de Abr. de 2019
First of all, please separate the magnitude data with the phase data. Both are merged right now.
Then save the data with three separate variables namely as magnitude, phase and frequency. Then use the follwing code to plot them:
subplot(2,1,1), loglog(frequency,magnitude), grid on
xlabel 'Frequency (rad/s)', ylabel Magnitude
subplot(2,1,2), semilogx(frequency,phase), grid on
xlabel 'Frequency (rad/s)', ylabel 'Phase (degrees)'
Hope this will help you!!!
Regards
Utkarsh
Categorías
Más información sobre Frequency-Domain Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!