Community Profile

##### Last seen: Today
3,549 total contributions since 2018

Communication through MATLAB is always better than arguing.

View details...

Contributions in
View by

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

6 hours ago | 0

| accepted

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

8 hours ago | 0

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

8 hours ago | 0

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

9 hours ago | 0

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

9 hours ago | 0

| accepted

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

12 hours ago | 0

| accepted

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

12 hours ago | 1

| accepted

MATLAB　Ｙ軸の最大値におけるＸ軸のあたい
% 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))...

20 hours ago | 0

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/...

21 hours ago | 0

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

5 days ago | 0

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

6 days ago | 0

| accepted

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

6 days ago | 0

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) = ...

6 days ago | 0

| accepted

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

6 days ago | 1

| accepted

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

9 days ago | 0

Manipulating Arrays using for loop
doc repmat

10 days ago | 0

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

12 days ago | 0

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

12 days ago | 0

Use a semicolon or a comma before rref(...)

12 days ago | 0

Question

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

13 days ago | 0 answers | 0

### 0

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

13 days ago | 0

| accepted

While MATLAB Online is a good feature there's still a factor that could be improvised for enhancing active collaboration on the ...

17 days ago | 0

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...

18 days ago | 0

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...

18 days 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...

19 days ago | 0 answers | 0

### 0

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

21 days ago | 1

Attempting to sum over i, with linspace'd variable x, to plot increase in y with x
n = 33; x = linspace(0, 0.1); ii = 1:n y = cumsum((2/pi)*(((-1).^(ii+1)+1)./ii).*(sin(ii*pi*0.005/.01))... *(cosh(ii*pi....

21 days ago | 0