function [(d,c)] = HA((a,b)) %UNTITLED Summary of this function goes here % Detailed explanation goes here a = logical([0]); b = logical([1]); c= a&b; d= xor (a,b); while running the code i got only one output but i need value for c and d. while using this function into full adder it gives "Subscripted assignment dimension mismatch". suggest me to overcome this issue.

댓글 수: 1

Rik
Rik 2017년 4월 2일
Have a read here and here. It will greatly improve your chances of getting an answer.

댓글을 달려면 로그인하십시오.

답변 (2개)

rohan ch
rohan ch 2020년 2월 27일
편집: rohan ch 2020년 2월 27일

0 개 추천

clc;
clear all;
close all;
A=input('enter the input');
B=input('enter the input');
sum=xor(A,B);
carry=and(A,B);
disp(sum);
disp(carry);
ragxyz
ragxyz 2024년 7월 29일

0 개 추천

A=input('enter the input');
B=input('enter the input');
sum=xor(A,B);
carry=and(A,B);
disp(sum);
disp(carry);

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2017년 4월 2일

답변:

2024년 7월 29일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by