Community Profile

photo

madhan ravi


Last seen: Today
3.552 total contributions since 2018

Communication through MATLAB is always better than arguing.

madhan ravi's Badges

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

View details...

Contributions in
View by

Answered
how to display images in separate figures?
for k = 1:8 figure(k) I = imread(sprintf('im%d',k)); % you forgot to read the image imshow(I) end

circa un'ora ago | 0

Answered
finding repeated values of two columns data?
No loops needed: [Rows,~,c]= unique(ex,'rows'); Counts = accumarray(c,1); Wanted = [table(Rows),table(Counts)...

circa 4 ore ago | 0

Answered
Ploting a series and finding lim to infinity
N = 1e2; % an inf number a = zeros(1,N); a(1) = 1/3; a(2) = 2/7; for n = 1:N-2 a(n+2) = a(n+1) / (n+1)...

circa 7 ore ago | 0

Answered
what is the difference of plot 3d and comet 3d?
doc comet3 doc plot3

1 giorno ago | 0

| accepted

Answered
How to add a label to a general line
Use sprintf(...)

2 giorni ago | 0

Answered
Sizing in subplot()
Plot first 4 graphs in a separate figure and the next four in the other.

2 giorni ago | 0

Answered
Not enought input arguments
Use function in a proper way. Please see the documentation on how to call a function properly.

2 giorni ago | 0

Answered
How can I replace "" entries in a table?
iX=str2double(TT.vm2PR); TT.vm2PR(isnan(iX))=0

2 giorni ago | 0

| accepted

Answered
naming figure window in a for loop
figure('Name',sprintf('single mode efficiency is %6.2f% \n',mean_E))

2 giorni ago | 0

| accepted

Answered
Function calls of both script and Inline variety
There’s one additional “)” in the inline(...) function. Remove it.

2 giorni ago | 1

| accepted

Answered
MATLAB Y軸の最大値におけるX軸のあたい
% An example x = 0:pi/2:4*pi; y = sin(x); [PeaKs,ix]= findpeaks(y) % for negative peaks use -y X_axis = sym(x(ix))...

2 giorni ago | 0

Answered
How do I correctly enter the function f(x,y)=sin((pi/2)*(x+y))?
% Option 1 x = [x0,x1]; y = [y0,y1]'; z = sin(pi/2*(x+y)); F = griddedInterpolant({x,y},z); xq = 1/...

2 giorni ago | 0

Answered
How to correctly get a sine/cosine-signal in Simulink?
<https://youtu.be/iOmqgewj5XI> , cos(...) is the sin(...) with phase shift.

7 giorni ago | 0

Answered
How can I make my script decide which scalar of two variables is larger?
MAX = max(bx,cy)

7 giorni ago | 0

| accepted

Answered
I keep getting two answers for my code
Add a semicolon in the last line. And call the function with an output argument.

7 giorni ago | 0

Answered
Solve ODE with odee45
ic=randi([0,1],4,1) ode45(@(t,y)myfunc(t,y,5),[0,10],ic) function dy = myfunc(t,y,vas) dy=zeros(4,1); dy(1) = ...

7 giorni ago | 0

| accepted

Answered
Function sinc in matlab
y = (4000 * sinc(4000 * x)) .* (exp(j * 2 * pi *7000 * x)); % .*!! Note: By default j is an imaginary number in MATLAB

8 giorni ago | 1

| accepted

Answered
using plotyy but having 2 different measuring units on y axis
yyaxis left plot(x,value1) yyaxis right plot(x,value2)

11 giorni ago | 0

Answered
Manipulating Arrays using for loop
doc repmat

12 giorni ago | 0

Answered
How to manipulate MATRIX size
[Matrix,zeros(31,104-90)]

13 giorni ago | 0

Answered
What is the notation meaning in these codes
u = 1:6 u(1:3) u(4:6)

13 giorni ago | 0

Answered
problem with rref function please help
Use a semicolon or a comma before rref(...)

13 giorni ago | 0

Question


Why is plot quality low ?
The figure quality is low when generating a pdf from livescript in MATLAB Online.

14 giorni ago | 0 answers | 0

0

answers

Answered
solving quartic eqn returns root
solx = vpa(solve(eqn,H,'Maxdegree',4))

14 giorni ago | 0

| accepted

Answered
What frustrates you about MATLAB?
While MATLAB Online is a good feature there's still a factor that could be improvised for enhancing active collaboration on the ...

19 giorni ago | 0

Answered
Why is the rectangle() function not recognized?
built-in (/MATLAB/toolbox/matlab/graphics/primitive/rectangle) If you see other than the above after using which rect...

19 giorni ago | 0

Answered
Why is @(x) used in matlab and how does it work?
It’s just a matter of choice as Kalyan mentioned above how it works. The usage depends completely on the coder. As pdfx(...) was...

19 giorni ago | 0

Question


What’s the best processor?
I want some opinions/suggestions to buy a powerful Mac just for powerful computations without any problems. I know there are som...

21 giorni ago | 0 answers | 0

0

answers

Answered
Change text to numbers in a cell
V = str2double(string(A)); % <2016a V(isnan(V)) = 1

23 giorni ago | 1

Load more