Skip to main content

All Questions

Tagged with
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 ...
Farah's user avatar
  • 1
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 ...
Bell's user avatar
  • 65
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 ...
Alexa Ross's user avatar
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 ....
Homer Jay Simpson's user avatar
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 ...
Snork Maiden's user avatar
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 ...
Kevin's user avatar
  • 29
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 ...
zijie wang's user avatar
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; ...
Fras's user avatar
  • 37
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. ...
Gerson CHADI JUNIOR's user avatar
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','...
Diego Fernando Pava's user avatar
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 ...
Benvz's user avatar
  • 15
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 ...
Diodendomme's user avatar
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 ...
Julie J.'s user avatar
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]) ...
SunnyD_'s user avatar
  • 21
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 ...
user avatar

15 30 50 per page
1
2 3 4 5
62