How to create random step signal?
To create a random step signal, you can write an infinite loop within which : generate a random value (within your limits) use t...

5 months ago | 0

How can I select a specific cell?
This can be done. Only this line is syntactically wrong: idx=find(time1>z(1,1)( & time1<=z(1,4));. It should be idx=find(time...

5 months ago | 0

| accepted

Tables and files in matlab
https://www.mathworks.com/help/matlab/ref/fscanf.html - Use this to read the lines. You will get a 1xn vector with each line. h...

5 months ago | 0

| accepted

how can I print some numbers in ascending order?
You have a, b, c. If you can use >,< then the following implemention can be used. max = (a>b)*a + (a<b)*b max = (max>c)*max + ...

5 months ago | 0

Fast way to compare elements of two different sized matrices?
Assuming ismember performs linear search has worst case O(n^2) complexity. The complexity of your code would be 2(n1)*(2n2)^2 = ...

5 months ago | 0

| accepted

Undo "import"
For the sake of solving you can write a function with a different name with same parameters and inside that function, call the s...

5 months ago | 0

Look at the append data section of this link. https://in.mathworks.com/help/matlab/ref/dlmwrite.html

5 months ago | 0

HTML files in matlab
https://in.mathworks.com/matlabcentral/fileexchange/22465-get-html-table-data-into-matlab. The getTableFromWeb function might ...

5 months ago | 0

| accepted

How do I find the centre of gravity for an irregular shape?

5 months ago | 0

Cumulative sum with multiple constraints
start = 0; cumulativesum = zeros(height(T),1); for row = 1:height(T) if row == 1 cumulativesum(row) = T.value(ro...

5 months ago | 0

| accepted