Im attempting to graph the union and intersection of this specific fuzzy set. But I am getting an error.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Trevon Alvarado
am 4 Okt. 2020
Kommentiert: Trevon Alvarado
am 4 Okt. 2020
%%Problem 2
clear all;
clc;
clf;
figure(1);
title('Continuity')
x=[1:.01:10]';
Q= [1 1 .8 .3 .1 0 0]
C=[0 0 0 .4 .6 .8 1]
QuC = max(Q,C);
QnC = min(Q,C);
plot(x,QuC)
hold on;
plot(x,QnC)
hold on;
hold off;
0 Kommentare
Akzeptierte Antwort
Cris LaPierre
am 4 Okt. 2020
The error I get when running your code is that the vectors you plot have to be the same length. x is 901x1 while QuC and QnC are 1x7.
What is the intent here? Do you instead want x=linspace(1,10,7)?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Fuzzy Logic in Simulink finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!