photo

Soniya Jain


Last seen: 3 years ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Knowledgeable Level 1
  • First Answer

View badges

Feeds

View by

Answered
How do I plot a function with a variable that has multiple values?
Note that the below code will just plot a graph with the marker we mention and not any line on it. X = [0, 0.5, 1]; Y = [0.5];...

3 years ago | 0

Answered
find sum of the run length of non zero elements between zeros of a matrix
a=[ 1 2 3 0 0 0 4 5 6 0 0 0 7 8 0 0 9 0 0 ]; j = 0; i = 1; while i ~= (length(a)+1) if a(i)~=0 sum = 0; ...

3 years ago | 0

Answered
i have two arrays in matlab code and i want to plot them by two lines on the same graph
You can use plot function, plot(Array1); hold on; plot(Array2); hold off; hold will retain current plot when adding new plo...

3 years ago | 0

Answered
find non zero elements in array
As mentioned in the error, that y is non-tunable, so have you tried to select the 'Variable Size' checkbox by specifying the upp...

3 years ago | 0

Answered
How to fill an array with the elements of a for loop?
Use element(c) instead

3 years ago | 0

| accepted

Answered
Hello, i have a table with many rows and 3 columns. In the first column some values are NaN. How can i put NaN values in the other columns in the same rows?
Hey, you can use isnan() function to find the location where values are NaN in the 1st column, A = [NaN,4,7; NaN,5,8; 3,6,9]; ...

3 years ago | 1

Answered
Susbtracting elements of a column with every other element but in a particular order without repeating same susbtraction in reverse order.
Hey you can store the values A1, A2,.. in a vector, i hope you find the below code useful, A(1) = -2.35007; A(2) = -8.61753; ...

3 years ago | 0

| accepted

Answered
Delete first row matrix and records new value
To find mean of matrix, you can refer Matlab documentation: https://in.mathworks.com/help/matlab/ref/mean.html What do you mean...

3 years ago | 0