Statistik
3 Fragen
0 Antworten
RANG
148.893
of 300.851
REPUTATION
0
BEITRÄGE
3 Fragen
0 Antworten
ANTWORTZUSTIMMUNG
66.67%
ERHALTENE STIMMEN
0
RANG
of 21.094
REPUTATION
N/A
DURCHSCHNITTLICHE BEWERTUNG
0.00
BEITRÄGE
0 Dateien
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANG
of 171.294
BEITRÄGE
0 Probleme
0 Lösungen
PUNKTESTAND
0
ANZAHL DER ABZEICHEN
0
BEITRÄGE
0 Beiträge
BEITRÄGE
0 Öffentlich Kanäle
DURCHSCHNITTLICHE BEWERTUNG
BEITRÄGE
0 Discussions
DURCHSCHNITTLICHE ANZAHL DER LIKES
Feeds
Frage
How do I create a string for values
I have written this code to produce values from 1 - 3 with set probabilities: B = randi(3,1); P = B; for i = 1:50 ...
mehr als 7 Jahre vor | 3 Antworten | 0
3
AntwortenFrage
I have to create a function y=D(m,n) where the value of y is m/n if n divides m evenly and n/m if m divides n evenly and otherwise y is zero. I used if and else if statements to define these but I wondering how to define the value of y as an integer.
function y=D1(m,n) if m/n== ? y=m/n; elseif n/m== ? y=n/m; else y=0; end end
mehr als 8 Jahre vor | 1 Antwort | 0
1
AntwortFrage
How do I create the follow array: [0 0 0 ... 0 1 2 ... 100 100 100], where there are 100 zeros on the left and 100 100's on the right? I must use the colon operator.
For previous questions I just used, for example, [0:0.01:1], to create the array from 0 to 1 using increments of 0.01. I just do...
mehr als 8 Jahre vor | 1 Antwort | 0

