Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

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

5 months ago | 0

Answered
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

Answered
How do I find the centre of gravity for an irregular shape?
Refer this link. It might help. https://in.mathworks.com/matlabcentral/answers/339583-hellou-could-i-ask-for-help-finding-the-ce...

5 months ago | 0

Answered
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

Answered
Equation differentiation and substitution
You can use 'syms' to symbolize N, w, ss and mor. Define the first equation 'Its'. Nest use the 'diff' function { diff(lts,N) }...

6 months ago | 0

| accepted