Community Profile

photo

madhan ravi


Last seen: Today
4,327 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
Element-wise multiplication of a 3D matrix KxLxM by a 1D vector M
C = A .* reshape(B,1,1,[])

3 hours ago | 0

Answered
Problem with using symbolic expersion in function toeplitz
Might be a bug. I didn’t have any problems with 2020a either. It’s better if you make a big report.

4 hours ago | 0

Answered
How can I apply a condition on a culumn?
A = (A - 360) .* (A > 360) + (A + 360) .* (A < 0) + A .* ((A >= 0) & (A <= 360));

7 hours ago | 0

Answered
elemental subtraction indices of initial vector
[r, c] = find(T == myvalue)

11 hours ago | 0

Answered
Why didn't I get an error for my matrices?
<https://www.mathworks.com/help/matlab/matlab_prog/array-vs-matrix-operations.html>

11 hours ago | 0

Answered
I don't know how to type this in matlab.
t = 0.037 exp(t-2)^1/2 Start with MATLAB On-ramp course.

20 hours ago | 0

Answered
How to let 2 vector row to multiply by itself
m = 4; n = 7; prod(m : n)

20 hours ago | 1

Answered
Is vectorizing this even possible?
A simple for loop is the best and easier to understand: vec3 = zeros(5,1); vec3(1) = 1; for k = 2:5 % edited af...

22 hours ago | 0

Answered
How to select consecutive values with the specified interval ?
reshape((1:10:50) + (0:2).', 1, []) % reshape(bsxfun(@plus, 1:10:50, (0:2).'), 1, []) %%for older versions

1 day ago | 0

| accepted

Answered
Substitute string to double
Requires Symbolic Math Toolbox: Wanted = str2sym(regexprep(Acell, {'R1', 'R2'}, {R1, R2})) %or for older versions Wanted = sy...

1 day ago | 0

Answered
Why is my account license says expired?
Contact your University's IT department.

1 day ago | 0

Answered
Is Mac an option for working MATLAB?
<https://www.mathworks.com/support/requirements/matlab-system-requirements.html> - everything is there

1 day ago | 0

Answered
Creating an Indicator Vector
indvector(pivot) = 1

2 days ago | 1

Answered
Interpreting Excel Data in MATLAB
Read it using readmatrix() or readtable(). sort() it row wise , index from 3 to end. mean() row wise. Use > for thresho...

2 days ago | 0

Answered
How can I run a list of variables through a function to return a list of outputs?
Vectorise the function, Zum Beispiel: Output = Test(1, 1, 1 : 10) % function call function Output = Test(x,y,z) % function ...

2 days ago | 0

Answered
Calculations on every 2nd row in a matrix in sets of 2 rows
matrix(1 : 2 : end, :) - matrix(2 : 2 : end, :) % ?

2 days ago | 0

Answered
How to take Inverse of a 6x6 cell array in MATLAB?
Assuming by inverse you mean *transpose* : C_dry = cellfun(@transpose, C_dry, 'un', 0)

2 days ago | 0

Answered
What is meant by double here ?? is it data type
<https://www.mathworks.com/help/matlab/ref/double.html>

2 days ago | 0

Answered
Error creating matrix using a integer and vector in Matlab
A = x(:) .^ (0:3)

3 days ago | 0

| accepted

Answered
Euler's Cosine and Sine identities
rewrite(A, 'exp')

3 days ago | 1

| accepted

Answered
How do i find the location by using max and find function?
doc max % second output , does what you need

3 days ago | 0

Answered
How to plot function of matrix in MATLAB?
Works, if Z is a matrix.

3 days ago | 0

Answered
How do i write it in matlab?
doc sin doc exp doc sqrt doc + doc \

3 days ago | 0

Answered
request integer inputs to put into the function
doc floor % and co

3 days ago | 1

Answered
How to subtract from a vector, have it return a value of zero if the answer is less than zero, and then tell me how much was subtracted?
totalsubtracted = (x(1) < 0) * (y + x(1)) + (x(1) > 0) * (- y + x(1)) % ?

3 days ago | 0

Answered
Soustraction between all line of a matrix
bsxfun(@minus, matrix(:), matrix(:).') % for newer versions bsxfun() is not needed

3 days ago | 0

Answered
Plotting and Vectors Length Regularization
plot(linspace(min(time), max(time), numel(Out)), Out)

3 days ago | 0

Answered
Check for missing argument or incorrect argument data type in call to function 'tf'.
You either don’t have the Control System Toolbox or the license for it.

4 days ago | 0

Answered
How to find out the index number of particular value from three dimensional matrices
V = cell(size(A, 3), 1); for k = 1 : size(A, 3) [R, C] = find(A(:, :, k)); V{k} = [R,...

4 days ago | 0

| accepted

Load more