Community Profile

Last seen: Today Active since 2019

#### Content Feed

View by

Question

How to plot a function on a 3D sphere?
I want to plot the following function on a sphere to obtain these figures: My coded program is: clear all; close all; clc;...

1 day ago | 0 answers | 0

### 0

Question

How to put the grid lines at the back of my figure?
I want to put the grid lines into the back of my plot, I have searched the previous answered questions but I'm unable to do so....

5 days ago | 0 answers | 0

### 0

Question

How can I add uncertainty to a data matrix?
I obtained a signal data by running a simulation with input parameters. Some of these inputs are h,a,r,fov as shown in the follo...

2 months ago | 1 answer | 0

### 1

Question

How can I change the title of the subplots with forloop iteration?
I have 24 subplots as shown below. I want to give the title name (CB1000(m)) to the first 6 subplots in a row and then the next ...

2 months ago | 1 answer | 0

### 1

Question

How to find minimum of a 3D function in a double for loop plotted on a slice?
I have 24 subplots of a 3D function (costf) plotted on a slice using two forloops,h and fov, as: The program is: figure cou...

3 months ago | 1 answer | 0

### 1

Question

Why I see only the last value of my row vector in the workspace?
I have the following row vectors in my program: When I run my program, I see in the workspace only the last value of these r...

3 months ago | 1 answer | 0

### 1

Question

How to plot cubic imagesc figure?
If I have four matrices, Height,a,CER and signal intensity, how can I plot them to get the following figure? The three variable...

3 months ago | 1 answer | 0

### 1

Question

How to plot contour on imagesc for three variables?
I want to obtain the folllowing figure using the program mentioned below. The three variable red encircled can be placed as x,y,...

3 months ago | 1 answer | 0

### 1

Question

Why the title tab from the editor is missing?
The title tab from my editor is missing as red encircled in the first (normal) image. The second image (below) shows my edit...

4 months ago | 3 answers | 0

### 3

Question

how to plot a function on a 3D sphere?
N0=100; r_med=[0.445 0.889 1.445 2]; sigma_g=7; N_ang=91; theta = (0:1:360)/180*pi; phi = (0:1:360)/180*pi; [x,y]=meshgrid...

6 months ago | 1 answer | 0

### 1

Question

How to plot a 3D function?
I'm trying solve this problem for the last one year but unable to do so. Please if anyone can help me. I roughly code a progr...

6 months ago | 0 answers | 0

### 0

Question

How to draw a sidebar in polar plotting?
How can I draw a sidebar (red encircled) with a polar plot as shown in figure. My program and figure are given below: clc; c...

6 months ago | 1 answer | 0

### 1

Question

How can I write a syntax in eval function?
Is it possible to write the following syntax in eval function? If yes, please write it down I_para(i,:)=(((((sqrt(P12(i,indx)./...

7 months ago | 0 answers | 0

### 0

Question

Adjust legend position outside the figure layout
I want to positioned the legend outside in the center of the figure. I have tried the northoutside, northeastoutside and posiito...

8 months ago | 1 answer | 0

### 1

Question

Why I cannot get accurate curves using for loops?
close all; clear all; clc; %% ------------------------------Program------------------------------------- z=2100:7.5:2242.5...

10 months ago | 1 answer | 0

### 1

Question

How can I run two loops at a time?
for i = 1:length(Reff) for j = 1:length(EC) ILP= getsignal([num2str(EC(j)),'\','1100','\',num2str(Reff(i)),'um\out_results...

10 months ago | 2 answers | 0

### 2

Question

How can I change the width of a tile in a tiledlayout without changing its height?
I'd like to decrease the width of each tile so that it looks like a vertical rectangle instead of square with vertical axis long...

11 months ago | 2 answers | 0

### 2

Question

How to adjust the position of a text on a plot?
I want to adjust the postion of the text S0=(1,1,0,0) and to put each in fron of a,b and c in the subplots. I also want to redue...

11 months ago | 1 answer | 0

### 1

Question

How to write a character sequence for parallel symbol?
We use \perp to insert a perpendicular symbol "⊥" but I haven't found a charater sequence for the symbol parallel. How can we wr...

12 months ago | 3 answers | 0

### 3

Question

How to plot a 3d function on a sphere?
I want to plot the following function on a sphere to obtain the figures below. The function is P11 and P12 are two row vecto...

1 year ago | 1 answer | 0

### 1

Question

How to plot a function in spherical coordinates?
I want to plot the followig function in spherical corrdinates with alpha=0-pi, and beta=0-2*pi. P11 and P12 are row vectors in m...

1 year ago | 1 answer | 0

### 1

Question

Why my plotting curves exceed the loop index?
Why I see three plotting curves while my loop index j runs twice? close all; clear all; clc; %% ----------------------------...

1 year ago | 2 answers | 0

### 2

Question

How to apply for loop index on plotting?
I have plotted three figures (as shown) with the following program using two for loops, each having two curves blue and red defi...

1 year ago | 1 answer | 0

### 1

Question

How to change the colors of the plotted lines in for loop?
close all; clear all; clc; %% ------------------------------Program------------------------------------- z=2860:11:3135; FO...

1 year ago | 1 answer | 0

### 1

Question

Why the for-loop doesn't work here?
close all; clear all; clc; %% ------------------------------Program------------------------------------- z=2860:11:3135; FO...

1 year ago | 1 answer | 0

### 1

Question

How can I put arrow heads on the plotted lines?
I want to put arrow heads on the blue lines u,v and w so that they represent as vectors. clear all; close all; clc; %% x=li...

1 year ago | 1 answer | 0

### 1

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

1 year ago | 1 answer | 0

### 1

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

1 year ago | 1 answer | 0

### 1

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

1 year ago | 1 answer | 0