Question


What is the alternate to eval function in a forloop?
EC = [0.0052 0.0104 0.0156 0.0234]; Reff =[4 8 12 16 20] for i=1:length(FOV) f(i)=figure(i); hold on for j = 1:...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


How to calculate standard deviation in double for loop?
for j = 1:length(EC) for k = 1:length(Reff) eval(['depri',num2str(j),num2str(k),'=','(depi',num2str(1),num2str(j),...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


How to show multiple lines in the legend?
The legend shows only one value of EC which is the last one as shown in fig, however my EC has 10 values and I'd lke to display ...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


How to induce loop index in the X-label also with changing label name at each iteration?
I have two programs saved in a seperate files, for instance a1.m and a2.m, and each program has the following structure. The var...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


How to Plot a function on 3D-sphere?
I want to plot the function P of the equation shown. I have to obtan the following figure. I have already obtained all the input...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


How to change the height of the subplots without changing x,y-positions and width?
I have plotted three subplots in one figure which appeared in the upper side of the main figure window as shown. The bottom of t...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


how can I show all of my data in the legend for each curve?
My plot has 10 curves which are according to the data of EC as shown in figure. However the legend displays only the last term i...

meer dan 3 jaar ago | 2 answers | 0

2

answers

Question


Alternate form of eval function
How can I write these two syntaxes in alternate from? eval(['I',num2str(i),num2str(j),num2str(k),'=','getsiganl(filename1)',';...

meer dan 3 jaar ago | 2 answers | 0

2

answers

Question


How to apply the loop index on the output (filename) of the sprintf function?
The program gives the following output variables in the workspace as shown in figure. I have three questions regarding the outpu...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


How to write a short syntax for the legend?
The legend in the plot shows seven lines is according to the length of EC in the program. I want to write one syntax for the leg...

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


How can I give different colours not randomly to large number of lines in one plot?
The syntax in the code col=['r' 'y' 'b' 'g' 'k' 'c' 'm' 'k' '#D95319']; is related to the color of the lines in the plot which w...

bijna 4 jaar ago | 1 answer | 1

1

answer

Question


How can I display data in order in the legend?
I want to display the legend as; black dot as actual data, green dot as data fit and red line starting from PolyCurve4/mum and s...

bijna 4 jaar ago | 1 answer | 0

1

answer

Question


How to merge multiple plots into one?
I have obtained 17 figures from the program below but each figure is displayed seperately. I want to merge them all and plot the...

bijna 4 jaar ago | 1 answer | 0

1

answer

Question


How can I show all the plotted lines in the legend?
Hi, I have obtained the figure from a program as shown below. In general, the figure contains the actual data,data fit and four ...

bijna 4 jaar ago | 1 answer | 0

1

answer

Question


Data exceed the computer memory
Hi, I have obtained these curves from the mentioned program. I'd like to make the blue curve more smoother which can be done by ...

ongeveer 4 jaar ago | 1 answer | 0

1

answer

Question


Plot 3D EM waves
How can I plot this figure in matlab? I found some examples of EM plotting but axes were not shown there. I'd like also to ment...

bijna 5 jaar ago | 2 answers | 0

2

answers