Community Profile

photo

madhan ravi


Last seen: Today
4.405 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
Why is fimplicit not plotting x^2 = 0 ??
fplot()

alrededor de 2 horas ago | 0

Answered
How to loop rand number without repition?
doc randperm

alrededor de 9 horas ago | 0

Answered
Function will not run or produce answers
Remove first 2 lines. Your function doesn’t need any input arguments. You must call a function not simply clicking the g...

alrededor de 9 horas ago | 0

Answered
Index a v dimensional matrix from a matrix with v columns and n rows
p(sub2ind(size(p), ind(:, 1), ind(:, 2)) = Dayum % where RHS should be equal to size(ind)

alrededor de 11 horas ago | 0

Answered
How to create large matrix with a pattern of sorts.
Since your homework is to use a loop: M = circshift(fliplr(tril(true(64))) .* [0; 1./(2:64).'], -1, 1);

alrededor de 11 horas ago | 0

Answered
Piecewise function with large time vector
g = ((0<t)&(t<2)) .* t/2 ... +((2<=t)&(t<4)) .* (4./(t.^2))... +((4<=t)&(t<20)) *0.25;

alrededor de 12 horas ago | 0

Answered
error variable a - basic
You don’t have to type >>

alrededor de 15 horas ago | 0

Answered
Error issue with variables
Change ; to ,

alrededor de 15 horas ago | 0

| accepted

Answered
help with matrix and how to extract rows
Wanted = mat2cell(matrix, repelem(6, numel(matrix)/36)) % not tested celldisp(Wanted)

alrededor de 15 horas ago | 0

Answered
How to get a random vector whose elements arrangement is the same as that of my desired vector
Use the second output of sort() to the newly sorted generated vector as index. [~, ix] = sort(u); N = sort(newly_generated...

alrededor de 16 horas ago | 0

Answered
Calling a variable using a function - basic
Return1 % call it function c1 = rand_val c1 = rand; end function c = Return1 c = rand_val; end

alrededor de 18 horas ago | 0

Answered
How do I create array with values from a specific location within each cell of a cell array.
Wanted = cellfun(@(x) x(1,2), cell_array)

alrededor de 21 horas ago | 1

| accepted

Answered
How to arrange the values of the matrix according to index number?
A faster version of the other answer: C_new = zeros(numel(A), numel([A, B])); [IX, ix] = sort([A, B]); C_new(:, IX) = [A1, B1...

alrededor de 22 horas ago | 0

Answered
how to get scientific notation out of answer
format longg

1 día ago | 0

Answered
How can I vectorize this plot?
Not possible without a loop.

1 día ago | 0

Answered
How to extract before and after a character up to a certain limit?
Before = regexp(str, '(?<=\z)(?:.*)(?=\c)', 'match', 'once') After = regexp(str, '(?<=\c)(?:.*)(?=\z)', 'match', 'once')

1 día ago | 0

| accepted

Answered
Trying to figure out how to get the correct answer with an anonymous function
LC < D sqrt(of a negative number) gives complex value

2 días ago | 0

| accepted

Question


Can't get past Task 2
I'm trying out Image Processing Onramp, why can't i get past through 2.2 Grayscale and Color Images: (2/3) Extract Color Planes...

2 días ago | 1 answer | 0

1

answer

Answered
Print certain values from an array with a condition
ix = find(y == min(y)); fprintf('min value of y = %d\n', y(ix)) fprintf('x value for min y = %d\n', x(ix))

2 días ago | 0

| accepted

Answered
find the unkowns in a matrix
B \ zeros(6, 1)

3 días ago | 0

| accepted

Answered
Finding the poles in Transfer Function
s = tf('s'); G = 1 / (s * (s + 2) * (s + 4)); pole(G)

3 días ago | 0

| accepted

Answered
Extracting specific rows with different content from a large table array
ix = find(TaBle.MatDate == 736958); Wanted = TaBle{(ix-30):(ix+10), :}

3 días ago | 1

Answered
Specify specific cell in the formula
ix = TaBle.Age == 77; A = TaBle.Age{ix, :} * TaBle.discount_px{ix, :}

3 días ago | 0

Answered
How to arrange the values of the matrix according to index number?
C_new = zeros(numel(A), numel([A, B])); C_new(:, A) = A1; C_new(:, B) = B1.'

3 días ago | 0

| accepted

Answered
How to get a contour plot from the combination of "for loop" and "matrix operation"?
[X, Y] = meshgrid(x, y); Z = X .* Y; contourf(X, Y, Z)

3 días ago | 0

Answered
How to use a list of indices to extract elements without for loop?
No, you cannot. The alternaternative is to use arrayfun() and co, but it just has an implicit loop. So I would say a loop is muc...

3 días ago | 0

| accepted

Answered
How do I fix this ?
function total_volume = A09_poolSubfunction_erastogi(surface_r, bottom_r, depth_shallow, depth_deep)

3 días ago | 0

Answered
How to create another line of code
It’s because you’re typing it in the COMMAND WINDOW. Use a script/live script.

3 días ago | 0

Load more