답변 있음
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년 전 | 0

| 수락됨

답변 있음
Plotting two matrixes in same plot
surf(A,B)

대략 7년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

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

대략 7년 전 | 2

| 수락됨

답변 있음
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년 전 | 1

| 수락됨

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

대략 7년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

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

대략 7년 전 | 0

| 수락됨

답변 있음
Figs. 1, 2, 3 are not coming while using the following code
Keep figure, only, not figure(1)

대략 7년 전 | 0

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

문제를 풀었습니다


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

대략 7년 전

문제를 풀었습니다


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년 전

문제를 풀었습니다


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년 전

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

더 보기