Matlab plots y axis values in plot for array of x arrays
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Marc Thelen
el 11 de Mayo de 2019
Editada: gonzalo Mier
el 11 de Mayo de 2019
I have a 33x1001 matrix of x values and an 1x1001 array of corresponding y values. I'm trying to plot this in one figure but matlab always plots the y axis into the plot at x=0. Can anybody fix this? Thanks a lot!
figure(21);
plot(Frequency_Hz,(Real_Wavenumber_1_m(:,:)).','.k');
hold on
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218980/image.png)
0 comentarios
Respuesta aceptada
gonzalo Mier
el 11 de Mayo de 2019
Editada: gonzalo Mier
el 11 de Mayo de 2019
There is no problem here. Matlab is doing what you want. The problem that you see may be because you have one row that is in a lower order of your general data, so if your wave_number you have values of 15e4 and others of 1, the lowers one will appear next to the x axis
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!