Pallav Patel
Followers: 0 Following: 0
Feeds
提问
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...
4 years 前 | 1 个回答 | 0
1
个回答提问
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...
4 years 前 | 0 个回答 | 0
0
个回答提问
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 ...
4 years 前 | 1 个回答 | 0
1
个回答提问
%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) = [...
4 years 前 | 1 个回答 | 0
1
个回答提问
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])...
4 years 前 | 1 个回答 | 0
1
个回答提问
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(...
4 years 前 | 1 个回答 | 0
1
个回答提问
How to replace the 5 in my vector with decreasing numbers like 5,4,3,2,1
x(3:4,3:5) = 5
4 years 前 | 2 个回答 | 0