Sebastiano Inturrisi
Followers: 0 Following: 0
Statistics
3 Questions
0 Answers
RANK
240,563
of 293,779
REPUTATION
0
CONTRIBUTIONS
3 Questions
0 Answers
ANSWER ACCEPTANCE
66.67%
VOTES RECEIVED
0
RANK
of 20,063
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 149,780
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Question
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 ...
6 years ago | 3 answers | 0
3
answersQuestion
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
7 years ago | 1 answer | 0
1
answerQuestion
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...
7 years ago | 1 answer | 0