Answered
Label multiple boxplots in same figure
As you didnot provided the K and M, so I did not able to cehck my code, this is perfectly works on bar charts, please try and le...

7 years ago | 0

| accepted

Answered
Plotting two matrixes in same plot
surf(A,B)

7 years ago | 0

Answered
How to add multiple input image file in the program? I am having images from a1 to a10. Kindly help me to resolve this problem
Keep all images in same working directory (Keep all 10 images only on current directory)- clc; list=dir('*.jpg'); for j=1:len...

7 years ago | 0

Answered
how to swap two bits in matlab.? which cammond is used for this..?
>> a=de2bi(28) a = 0 0 1 1 1 Here swap first and Fifth Elements (Change as per your requirements) ...

7 years ago | 1

| accepted

Answered
How do I multiply an integer with a single value from the matrix?
Here Module_Information is cell >> whos Module_Information Name Size Bytes Class Attribu...

7 years ago | 0

Answered
Help Writing One's Own Functions
I have tried with similar, I have no issue If I misundestood the question, please clarify?

7 years ago | 2

| accepted

Answered
multiple plots on same axis
Ckwh=0.0001; n=1:2:20; A=[]; for i=3:12 A=(((1+i).^n(:)-1)/(i*(1+i).^n(:)))*Ckwh*8760; plot(n,A); hold on; en...

7 years ago | 1

| accepted

Answered
Generate random variables over an interval
I wanted to generate a standard normal variate 'zn' over the interval (0,1). zn=rand(1)

7 years ago | 0

Answered
using for loop in alignsignal function
%I assumed both (X & Y) have same lengths for i=1:lengths(x) [Xa(i),Ya(i)]=alignsignals(X(i),Y(i)); end For example y1=[1 2...

7 years ago | 0

Answered
Create a binary mask drawing on images with vessels
As per my limited knowledge I dont think there is any specific function which can extracts the vessels from images (all differen...

7 years ago | 0

Answered
How to make convolution on sinc function and square function
t=-10:.01:10; y1=sinc(t); y2=zeros(size(t)); y2(t>=-1 & t<=1)=1; c=conv(y1,y2); stem(c);

7 years ago | 0

| accepted

Answered
How to select a random number from set 5:20:2000?
idx=5:20:2000; rand_num=idx(randi(length(idx)));

7 years ago | 0

| accepted

Answered
Figs. 1, 2, 3 are not coming while using the following code
Keep figure, only, not figure(1)

7 years ago | 0

Answered
How can I create a numeric array using entries from my 3D matrix?
result=A(50,1,:); numeric_array=result(:) Check: >> whos numeric_array Name Size numeric_a...

7 years ago | 1

| accepted

Answered
Select points on plot and calculate slope
im=imread('1.png'); [rows colm]=size(im); point1=[randi(rows),randi(colm)]; point2=[randi(rows),randi(colm)]; imshow(im); h...

7 years ago | 0

Answered
how to find real&imagenery part of complecs symbolic expression ?
syms a b real %.........^ H=a*i+b; real_H=real(H) imag_H=imag(H) Output: real_H = b imag_H = a

7 years ago | 0

| accepted

Answered
How to generate a uniform number between 0 and 1 so if it is smaller than p (where p is a probability) it choose event 1 otherwise it is event 2?
num=rand; p=input('Enter Prob'); event1=%event 1 expression*(num<p); event2=%event 2 expression*(num>=p);

7 years ago | 0

Solved


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

7 years ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

7 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

7 years ago

Answered
Stacking 2D images to form 3D stack and viewing it in a volumetric manner
If the images are gray, you can check here for multidimentinal arrays. Regarding view, you can Displays 3D images slice by slic...

7 years ago | 0

Answered
2D matrix to 3D
Here I used the multidimetional arrays mat1(:,:,1)=[1,2,3,4; 5,6,7,8; 9,10,11,12]; mat1(:,:,2)=[1,2,3,4; 5,6,7,8; 9,10,11,12];...

7 years ago | 0

| accepted

Answered
I want to do something with matrices
x=randi([0 1],10,3) %Just random example idx1=find(x(:,1)==1); idx2=find(x(:,2)==0); idx3=find(x(:,3)==1); result_rows=inte...

7 years ago | 0

Answered
Rectangle intersection or Overlap
num=input('Number of Rantangle'); for i=1:num rectangle('Position',[i i+1 2*i 3*i]); %.....................^..^..^....^ set a...

7 years ago | 0

Answered
graph fitresult breaks weirdly in plot..?
somehow, matlab creates this break in the fitresult, and ignores the second dot in the data?. Second dot id the part of fittin...

7 years ago | 0

Answered
Plotting iterations vs error for false position method
Both icurrent and error are scalars, how can you expect a graph. Try to make vector, so that you can plot. Here I am trying to...

7 years ago | 1

Answered
How do I apply a pulse shaping filter on a bit stream supplied?.
Square Pulse: data=[1 1 1 0 0 1 0 0]; stairs([data,data(end)],'r','linewidth',2); next try by yourself

7 years ago | 0

Answered
any way to add legend in bar plot like this?
See this example y=[2 2 3; 2 5 6; 2 8 9; 2 11 12]; bar(y,'stacked'); legend('level1','level2','level3','Location','Best','Fon...

7 years ago | 0

Answered
how to create loops to automatically select next bits??
x=randi([0 1],1,80); %Here I choosed random, consider your actual a c=[1 1 1 1 0 0 0 0 1 0 1 0 0 0 0 0]; %As given by you for ...

7 years ago | 0

Load more