Community Profile

photo

Pallav Patel


Last seen: presque 4 ans il y a Actif depuis 2020

Statistiques

  • Thankful Level 3

Afficher les badges

Content Feed

Afficher par

Question


Sort data based on different column
a = [5 8 1 2 7 6 3 4 70 60 50 40 30 20 10 0] I would like to sort t...

presque 4 ans il y a | 1 réponse | 0

1

réponse

Question


Loop for repeated file input if error
clc clear close all %Input for data file name myFilename = input('Please enter data file name.(Case sensitive):''s'); myF...

environ 4 ans il y a | 1 réponse | 0

0

réponse

Question


Printing pascals triangle binomial in loop
n = input('n:'); %Create first two rows that are always constant pt(1, 1) = 1; pt(2, 1 : 2) = [1 1]; for row = 3 : n ...

environ 4 ans il y a | 1 réponse | 0

1

réponse

Question


%i created a fibonacci sequence but i want an expanded output of the polynmial that give the fibonacii sequence, %ie (x+y)^3 = x^3 + 3x^2y + 3xy^2 + y^3
clc; clear; close all; n = input('n:'); %Create first two rows that are always constant pt(1, 1) = 1; pt(2, 1 : 2) = [...

environ 4 ans il y a | 1 réponse | 0

1

réponse

Question


Stop value in loop for repeating
clc; clear; close all; rng('shuffle'); myint = randi([4,100]); while mod(myint,2) ~= 0 myint = randi([4,100])...

environ 4 ans il y a | 1 réponse | 0

1

réponse

Question


How to combine two outputs of a into a single vector.
L = randi([2,5]); lo = [1,5,10] hi = [3,8,9] for k = 1:length(hi) if hi(k(1:end))>lo(k(1:end)) a=[lo(k):hi(...

environ 4 ans il y a | 1 réponse | 0

1

réponse

Question


How to replace the 5 in my vector with decreasing numbers like 5,4,3,2,1
x(3:4,3:5) = 5

environ 4 ans il y a | 2 réponses | 0

2

réponses