Community Profile

ali b


Active since 2015

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


Loop for T ( T > 10) = 10;
So I was asked in class to do this at home and I am stumped. I have to write a loop that is equivalent to the command T ( T...

9 years ago | 1 answer | 0

1

answer

Question


interleaving arrays of different size
So I made a script that can weave two arrays of the same size x = [1 2 3]; output = zeros(1,2*length(x)); output(1:2:e...

9 years ago | 1 answer | 0

1

answer

Question


Summing the multiples of 3 and 5 under 100
So I'm writing a script that does as the title says i= 1:99; v1 = (rem(i,3) == 0); v2 = (rem(i,5) == 0); v3 = v1 + v2;...

9 years ago | 4 answers | 1

4

answers

Question


how to get the even numbers between 2 numbers using a loop
So, for example, between 5 and 13 it would show: [6 8 10 12]

9 years ago | 2 answers | 0

2

answers

Question


how to create a 1,12,123,1234 pattern in a triangle
How do I make a pattern from 1:N, Lets say N = 5, so it turns out like this: 1 12 123 1234 12345

9 years ago | 4 answers | 0

4

answers

Question


How to get different input, depending on the last input
So I need to make a chatbot script and i'm stuck on this part x = input('+ ', 's'); s={'hey','hi','hello'}; if ismember(...

9 years ago | 1 answer | 0

1

answer

Question


How to make a string == one string in a cell array
I need to make a chatbot for an assignment and im having trouble with this part of the script x = input('+ ', 's'); if x ...

9 years ago | 2 answers | 0

2

answers