All Questions
Tagged with plot matlab-figure
916
questions
0
votes
0
answers
44
views
Plot fourier transform function of anonymous function
I am trying to plot the fourier function of a combination of ramp functions
I defined my original function as following: x = @(t) r(t + 1) - 2 * r(t) + r(t - 1); such that I will use it again.
I had ...
2
votes
1
answer
32
views
Resizing Subplots Within a Figure
I have two subplots displayed side-by-side in one figure window, as shown.
Now, the aspect ratio (width-to-height ratio) of each photo is fixed, as is the proportion of the two images in relation to ...
0
votes
1
answer
44
views
How to plot x,y,z data in a polar stereographic map in matlab?
I have data from the SAR satellite instrument that is already in a polar stereographic projection. The data comes with x,y coordinates, not lat,lon. Can anyone provide insight on how to plot the z ...
1
vote
1
answer
40
views
Line in Matlab plot do not appear
I am self studying Matlab and I want to create a plot with electron concentration and inverse temperature as the picture shows:
I have created a code in matlab but I do not see the line in the plot ....
0
votes
1
answer
48
views
How to slice a 3D cylinder in MATLAB?
I'm trying to create a function that plots a cylinder with slices at a given angle where:
l - length of a cylinder
d - diameter
a - angle
n - number of slices
Here is what I have so far:
function ...
1
vote
1
answer
57
views
How to make Matlab legend show opaque plot symbols when scatter plot symbols are semi-transparent in the figure
I am trying to create a scatter plot cloud, of which I set the points are all "filled" and semi-transparent by setting "MarkerFaceAlpha=0.1". However, when I export the legend ...
1
vote
1
answer
166
views
How to change font to times new roman when using matlab latex interpreter?
My plot for x axis name using matlab is "normalized time t/T", where "normalized time" should be in times new roman font, the same as normal font as my paper, and t/T should be in ...
2
votes
1
answer
101
views
How to plot figures at the end of the for loop MATLAB?
Hello I have the following piece of code which plots my results:
h1 = figure;
h2 = figure;
for i = 1:5
figure(h1);
set(h1, 'Visible', 'off');
semilogy(0:iter_jac ,resvec_jac,'-*');
hold on;
...
0
votes
1
answer
62
views
Problem in exhibiting three graphics in Matlab in the same plot in Matlab
For a project I receive data of two different pressure sensors: P_mes and P_mes_new and Iem in arrays. I have also an estimation of pressure value, which I call P_est and I also store it in an array. ...
2
votes
1
answer
95
views
Plot Lines dissapear when saving MATLAB figure as svg vector image
I am creating a plot in matlab with a grid, when I try to save it as a vector image the plot lines dissapear. Any idea how to solve this?
to save I am using
print(gcf,'-vector','-dsvg',['Page1Vector','...
1
vote
1
answer
29
views
How to plot around a certain x-value without having to manually find the indexes in a huge data array?
I'm currently plotting an array with 550K elements which belong to a spectroscopic spectrum in MATLAB and encountering some issues.
The plot itself ranges from 2040-2150 cm^-1, but if I want to ...
2
votes
0
answers
72
views
Matlab figure: Keeping same font when opening matlab figure window
I want to use the latex font in a figure or pdf exported from Matlab.
When I create the figure with the attached script in a matlab livescript, in the output it shows the figure on the right. There ...
0
votes
1
answer
199
views
How to replace a legend with a colorbar in MATLAB?
I have a line plot with several lines but rather than a legend, I would prefer to have a colorbar to indicate the value (of time in my case) for each line.
My best attempt so far is as follows (I am ...
0
votes
0
answers
24
views
How to Change Plot to Percentage Deviation from Initial Value (the steady state) - Matlab
Given the code below, is there an easy way to input some lines that would change the plot from being in levels to percentage deviation from the initial value?
set(gcf,'PaperPosition',[0 0 15 10])
...
0
votes
1
answer
25
views
How to add highlighting of brused points on scatter3 in MATLAB
When I worked with the 2D chart, my points were marked with a red circle around
After i move to scatter3, and marking points here only changing color to red:
How to return the red circle around the ...