Answered
Autoarrange title and top xlabel on plot
try this one, maybe it helps, this answer is *not automated set*, but the title will display without overlapping title({'Fi...

8 years ago | 1

Answered
How to Generate a clock pulse in Matlab ?
See there is a period(s), its a time period, f=1/time period, to calculate the frequency. So Adjust the T in such a way that f e...

8 years ago | 0

Answered
How to plot graph
I have already answered the similar question, it's same. In 6 you have to change to 9 x=1:1:100; log9(x)=log(x)/log(9) ...

8 years ago | 1

| accepted

Answered
how we can store each and every value in nested for loop.
Here already value stored in each iteration d=linspace(2,4,3); PL=linspace(0.8,1,3); N=linspace(11,13,3); for t=...

8 years ago | 0

Answered
How to plot graph
x=1:1:100; log6(x)=log(x)/log(6) y=log6(x); plot(y); <</matlabcentral/answers/uploaded_files/134946/66.png>>

8 years ago | 1

| accepted

Answered
Default folder when saving script files
You can fix the path in the current working directory. <</matlabcentral/answers/uploaded_files/134942/jj.png>>

8 years ago | 2

| accepted

Answered
Can someone please guide me how to find amplitude of a signal to get unit energy (=1)?
%Simple Maths For s(t)=1 a should be- Vary t2 as per requirements a=1/exp(t2); Suggested to go detail and calcula...

8 years ago | 1

| accepted

Answered
How to find the point of intersection of two lines in matlab ?
% You can proceed this way also t=0:.1:10; y1=sin(t); % say f1 y2=exp(t); %f2 intersection=find(y1==y2);

8 years ago | 1

| accepted

Answered
Generate a 15-by-2 matrix q with random numbers
a) p=100*rand(15,2); Please learn how to generate random arrays <https://in.mathworks.com/help/matlab/math/create-arrays...

8 years ago | 0

Answered
create function that performs the following computation
function sum_result=sum1(n) sum1=0; for i=1:n sum1=sum1+1/n; end end Same can be done by using while loop ...

8 years ago | 0

Answered
How to plot the distribution of one mean against another mean?
plot(0.3791,0.4338,'*','linewidth',5); xlabel('Distribution Value'); ylabel('mR_runoff_ratio'); title('Mean Distribut...

8 years ago | 0

| accepted

Answered
How does logical indexing work ?
From the following example, you got the answer v1=[1 2 3 4 5 6 7 8]; >> v=v1(v1>6) v = 7 8 Whe...

8 years ago | 0

Answered
Error using plot Vectors must be the same length.
Hello @Dursman Before Plot please ensure that both Cfit and tv dimension should be same. You have used the nesting of functi...

8 years ago | 0

| accepted

Answered
Cumulative distribution function for non-normal distribution
Have you looked at <https://in.mathworks.com/help/stats/cdfplot.html ecdf> function? data_dis=ecdf(data); *CDF* norma...

8 years ago | 0

| accepted

Answered
Why do i get "Array indices must be positive integers or logical values"?
%No Error A=[44.8000 68.8000 11.4000 93.8000 93.8000 93.8000 15.8000; 55.7000 87.2000 12.9000 137.4000 137.4000 137.4000 18...

8 years ago | 0

Answered
I wanted to know whether matlab R2016a can run on intel core2duo processor- 4Gb ram(dell inspiron 1545 n series)
Yes, As I have checked in the system <https://in.mathworks.com/support/sysreq/release2016a.html requirements> for 2016a, nowhere...

8 years ago | 1

| accepted

Answered
Can some one please help me to get these two images in the same window
%hope this example will help you, are you looking for this one? c1=2*rand(5,5); c2=2*rand(5,5)+1; figure, subplot(...

8 years ago | 0

Answered
Getting an error "INDEX OUT OF BOUNDS" in my matlab program. Please help.
This loop loop for icounter=-1:1:1 chi=(icounter); end chi=1 and When you calculate the following diff...

8 years ago | 0

| accepted

Answered
How define the rotation of a rectangle in space ?
Let's suppose rect is the rectangular shape, you want to <https://in.mathworks.com/help/antenna/ref/rotate.html rotate> it with ...

8 years ago | 0

| accepted

Answered
what does it mean by index exceed matrics dimension
As per *@Walter Sir Apart from this, there is no error like Index exceeds matrix dimensions.* *Regarding Index exceeds matri...

8 years ago | 0

Answered
I have an assignment that requires us to calculate the total forest area against the total area of land given the BMP image
Learn to code: Please check what the question asked for. From the following code, you can get the idea, how can you proceed w...

8 years ago | 0

| accepted

Answered
How to get a ROC curve by using the sensitivity and specificity obtained?
I have provided the number of answers (Related ROC) Click <https://in.mathworks.com/matlabcentral/answers/411622-how-can-i-pl...

8 years ago | 0

Answered
I need some one to tell me why this code is looping infinitely once n reaches 19, this array should be a finite one (warning: This is a dynamic array or an attempt at one at least)
%Check the following line, you have assigned c=3 for m=3:1:c becomes for m=3:1:3 Means Initial m=3 ...

8 years ago | 0

Answered
second-degree linear system
syms x y [solx,soly]=solve(x^2-x*y-y^2-1==0, 12*x+4+y==0) <</matlabcentral/answers/uploaded_files/134036/111.png>>

8 years ago | 1

| accepted

Answered
Escala no eixo x
use esta linha axis([0 100 0 inf]) Por exemplo, veja o exemplo a seguir x=0:1:100; y=x.^2+1; plot(x,y) axi...

8 years ago | 0

Answered
how to plot this equation on matlab. where omega = -pi to pi, and n= -15 to 15 .
syms m omega=-15:pi/50:15; f=(1/pi*m)*(sin(omega*m)); V=symsum(f,m,-15,15); plot(omega,V,'linewidth',2); <</matlabcentr...

8 years ago | 0

| accepted

Answered
Calculating the Bytes Per Pixel and BitRate of a JPEG Image
Use dir() and check the file size in return And find rows and column of the respective write image, row*com gives the total...

8 years ago | 0

Answered
Deleting rows in a matrix based on a column's value
Here element value less than th1 and Greater Than th2 at clom. 1 A(A(:,1)<th1,:)=[]; A(A(:,1)>th2,:)=[] Below code dele...

8 years ago | 0

| accepted

Answered
Labeling multiple plots along the plotted line on the same figure
Add Legend: Add this line at last of the code legend({'GR:21.58','GR=22','name1','name2','name3','name4'},'Location','north...

8 years ago | 1

| accepted

Load more