Digital systems using MATLAB scripts

This can be used in understanding digital eletronics there are scripts given that you can run and see the output Useful in universities.

Ahora está siguiendo esta publicación

Digital Electronics MATLAB Toolkit — Script Descriptions
=========================================================
All scripts are interactive: prompts show defaults in [brackets], press Enter to accept.
They produce formatted console output and MATLAB figure plots.
1. de01_number_systems.m
Interactive base converter and signed arithmetic. Converts a decimal integer
to binary, octal, hex, and 2's complement for a given bit width, then
demonstrates signed addition with overflow detection.
2. de02_logic_gates.m
Evaluates any 2-input logic gate (AND/OR/XOR/NAND/NOR/XNOR/NOT) on user
inputs, prints the full truth table, and draws timing waveforms for two
user-supplied 8-bit patterns.
3. de03_boolean_minimize.m
Quine-McCluskey minimizer for 2-6 variable functions. Takes minterms and
don't-cares, finds prime implicants, selects an essential cover, and prints
the minimal sum-of-products expression.
4. de04_kmap_visualizer.m
Draws a Karnaugh map (2/3/4 variables) with Gray-code ordering. Fills cells
with 1s and Xs from user-supplied minterms and don't-cares.
5. de05_mux_decoder.m
Simulates a user-chosen MUX (2:1, 4:1, 8:1) by sweeping select lines and
printing/plotting the truth table. Also simulates a matching decoder of the
same width.
6. de06_flipflop_sim.m
Simulates D, T, JK, or SR flip-flops with a user-defined input stream.
Computes Q on each rising clock edge and plots the timing waveform.
7. de07_counter_shift_register.m
Configurable mod-N counter — prints the state table and plots Q waveforms.
Then simulates a shift register with a user-supplied serial-in sequence and
shows register contents each clock.
8. de08_fsm_101_detector.m
User-defined bit-pattern detector (Moore FSM). Prompts for a target pattern
and input stream, runs the FSM with optional overlapping matches, and plots
input vs. detect waveforms.
9. de09_full_adder.m
Prints the 1-bit full adder truth table, then simulates an N-bit ripple-carry
adder for two user operands, showing per-stage carry propagation.
10. de10_logic_playground.m
Evaluates any Boolean expression (2-6 variables, using & | ~ xor), prints the
full truth table, and classifies the function as tautology, contradiction, or
contingent.

Citar como

SK (2026). Digital systems using MATLAB scripts (https://la.mathworks.com/matlabcentral/fileexchange/184296-digital-systems-using-matlab-scripts), MATLAB Central File Exchange. Recuperado .

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.0.0