Community Profile

photo

madhan ravi


Last seen: Today
4,228 total contributions since 2018

Communication through MATLAB is always better than arguing.

madhan ravi's Badges

  • Master
  • First Review
  • First Submission
  • Thankful Level 4
  • 12 Month Streak
  • Knowledgeable Level 4
  • Promoter
  • Commenter
  • Revival Level 3
  • Solver
  • First Answer

View details...

Contributions in
View by

Answered
index multiple columns together on different critera
_“I want to pull out a new matrix with all the rows where column 1 is <0.2 *and* column 2 is >0.2.”_ idx = A(:,1)<0.2 & A(:,...

14 hours ago | 0

Answered
matrix to cell conversion
num2cell(matrix, 1).'

17 hours ago | 0

Answered
how to modify all elements in a row vector
vector(:) .*(0:numel(vector(:)) - 1)

17 hours ago | 0

Answered
Check for missing argument or incorrect argument data type in call to function 'ss'.
Either you don’t have the license for it or you don’t have that toolbox.

2 days ago | 0

| accepted

Answered
multiply vector and matrix
Wanted = cell2mat(a) .* cell2mat(b); celldisp(num2cell(Wanted, 2))

2 days ago | 0

Answered
multiply vector and matrix
Wanted = cellfun(@times, a, b, 'un', 0); celldisp(Wanted)

2 days ago | 0

Answered
multiply vector and matrix
a .* b

2 days ago | 0

Answered
Find/return value from each row in a big matrix that corresponds with a condition/value
Wanted = nonzeros(x .* (abs(A - c) < 1e-2))

4 days ago | 0

Answered
Undefined function or variable 'imnlmfilt'
It requires Image Processing Toolbox and a valid license for it. Contact your IT department in your University to get the licens...

6 days ago | 0

| accepted

Answered
Solving symbolic trig equation in terms of theta, using "sol."
The solution is returned in a struct so to access it you need to use the dot. It has occurred that there are two solutions?

6 days ago | 0

| accepted

Answered
How to convert a char into double?
sscanf(f,'%d')

7 days ago | 0

Answered
lines through markers on legend
x = -10 : 0.1 : 10; y = cos(x); plot(x, y, '--o', 'MarkerSize', 5) hold on y = sin(x) plot(x, y, '--d', 'MarkerSize',...

7 days ago | 1

Answered
How to create function handle with matrix inputs, vector output?
FCN = @(x) x(:, 1) + x(:, 2); sum(in, 2) % ??

8 days ago | 0

| accepted

Answered
"str2sym" delete the element wise operation
doc matlabFunction

8 days ago | 1

| accepted

Answered
How to replace multiple elemets at particular index in vector ?
a(3 : 2 : 7) = [.7, .1, .9]

8 days ago | 1

| accepted

Answered
extract num and den from matrix transfer function
Use it inside the loops, preallocation is recommended for the variables.

8 days ago | 0

Answered
How can i get the last element of a maxium with the help of findpeaks?
<https://www.mathworks.com/help/signal/ref/findpeaks.html#bufhxsk-2> It states: _“For the flat peak, the function returns ...

8 days ago | 0

| accepted

Answered
Error 'Array indices must be positive integers or logical values.' when the number of indices is large
In this case it’s probable that b has elements less than 1 and greater than 32. Outside_bounds = nnz((b < 1) | (b > 32)) % t...

9 days ago | 0

| accepted

Answered
fzero or fplot function
The anonymous function should perform element wise operations (warnings for fplot) and (errors for fzero).

9 days ago | 0

Answered
How parentheses effects multiplication with pi ?
In the first the order of operation is from left to right. In the second the order of operation is inside the parenthesis and...

10 days ago | 0

Answered
How do I delete my account?
Contact MathWorks Support Team.

11 days ago | 0

| accepted

Answered
how to label strings in an array with an ID
T = cell2table(StringID(:, 2)); T.Properties.RowNames = StringID(:, 1); Wanted = T{num2cell(tc), :}

11 days ago | 0

Answered
Error while plotting matrix of complex numbers
plot(real(sub), 'r-', imag(sub) ,'b*');

11 days ago | 0

| accepted

Answered
Variable for loop storage
low = A(lowPs, :)

11 days ago | 0

Answered
Variable for loop storage
low = cell(numel(lowPs), 1); for k = 1 : numel(lowPs) B = A(:,1) == lowPs(k); %%row numbers in A where A(:,1) that co...

11 days ago | 0

| accepted

Answered
random matrix with a given number of specified elements
v = [repelem(1, 5), repelem(0, 4)]; Wanted = v(reshape(randperm(numel(v)), 3, []))

11 days ago | 1

| accepted

Answered
How can I randomize the order of a matrix of images
Filenames = compose('image%d.png', 1:4); Filenames(randperm(numel(Filenames))) % ?

12 days ago | 0

Answered
Using Surf function with matrix
surf(C)

13 days ago | 0

Answered
Plotting in 3d
doc fsurf

14 days ago | 0

Answered
wrong differential equation solution
a1 = matlabFunction(simplify(sol)); a = matlabFunction((1/80)*(36*exp(-t)-35*cos(t)-cos(3*t)+125*sin(t)-3*sin(3*t))); t ...

14 days ago | 1

Load more