Réponse apportée
putting tick marks on a graph/trajectory
https://ch.mathworks.com/help/matlab/ref/text.html

presque 6 ans il y a | 0

Réponse apportée
Is it possible to display multiple figures next to each other
You can use copy object close all y = [1 2 3 4 5 6]; x1 = 5*y; figure() a1=plot(x1,y); x2 = y.^2; figure() a2=plot(x...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How to make fsurf a solid colored surface with no shade? and make the surface tranparent.
By default FaceColor is set to interp. Change it to your favourite color. For tranparency use FaceAlpha figure syms x1 x2 ...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Remove or combine longitude and latitude axis label for geoscatter
lon = (-170:10:170); lat = 50 * cosd(3*lon); A = 101 + 100*(sind(2*lon)); C = cosd(4*lon); % gx = geoaxes; figure, subplot...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How to remove dot from zero error bars
You are telling MATLAB to set color to black and marker to dot. '.k' Replace it with 'k' Also set linestyle of errorbar to ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
how to change the colours of a bar chart
hBar(1).FaceColor = 'flat';hBar(2).FaceColor = 'flat'; hBar(1).CData =rand(size(hBar(1).CData,1),3); hBar(2).CData =rand(size(...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Color Letters to define in plotting
Predifined Color figure,plot(1:10,'Color','red') User defined Color figure,plot(1:10,'Color',[r g b]) where r, g an b are rg...

presque 6 ans il y a | 0

Réponse apportée
Cannot find an exact
it is xlabel and not Xlabel . The error says Cannot find an exact match for 'Xlabel', the closest match is xlabel xlabel('time...

presque 6 ans il y a | 0

Réponse apportée
how to change x axis labelling
set(gca,'XTickLabel',x) This command is working for me Maybe due to your MATLAB version it is not working for you Try conve...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
What is the syntax error in my script?
The problem is with braces. [ ] generate arrays, {} generate cells and () are used for multiple purpose Read this for more deta...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
How to stop a rand function from getting the same result in a for loop
I dont know how to stop rand function from comming up with same number but there is a way you can do that by indexing and removi...

presque 6 ans il y a | 0

Réponse apportée
Why the user-defined function return an empty matrix when there is a division formula about global variables?
You need to define global m before calling the function rho_free. if global m is not defined m will be empty the best way i...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
I am trying to place multiple phased array apertures on mutliple facets of a ship. How do I model that in matlab? How do I get the maximum scan angle? I am trying to get the minimal number of arrays to get 360 Horizon to Horizon coverage.
Read the following links for phased array https://www.mathworks.com/help/phased/ref/sensorarrayanalyzer-app.html https://www.m...

presque 6 ans il y a | 0

Réponse apportée
Does anyone know why my 2nd conditional statement is being ignored in this while loop?
Suppose i enter Nm in command window then units will be units units = 1×4 string array "Nm" "" "" "" ...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
While or for loop?
Use while loop instead of using if else and continue break in while(true), add condition in while loop Print after the while l...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Error in PengRobinson (line 21)
You are running a function directly without passing arguments to it. If you want to run the function PengRobinson you have to ca...

presque 6 ans il y a | 0

Réponse apportée
Is there any way to have grid on as default?
Set default properties set(groot,'defaultAxesXGrid','on') set(groot,'defaultAxesYGrid','on') figure,plot(1:10)

presque 6 ans il y a | 7

| A accepté

Réponse apportée
Hangman right word replacement
because ' _ ' are three characters and not 1. first index is space, 2nd is dash and 3rd is space again what you need is repla...

presque 6 ans il y a | 1

Réponse apportée
Properly put date labels with OuterPosition and datetick
You can define xtick and xticklabel by yourself subplot(3,2,1) past = datenum('02-24-2020'); present = datenum(datetime('toda...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
add/extract Audio to/from Video
Write audio in a video using vision.VideoFileWriter. The source of code VideoFrameRate = 24; TempImage = imread('cameraman.tif...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Adding multiple lines in plot using annotation
figure,plot(1:10) A = 2; epsilon = 0.05; k=2; dim = [0.15 0.5 0.3 0.3]; str = {['A = ',num2str(A)],['\epsilon = ',num2str(e...

presque 6 ans il y a | 3

| A accepté

Réponse apportée
'Timeseries' vs 'Structure with time data' for plot
x = rand(1,10); figure,plot(x) figure,stairs(x)

presque 6 ans il y a | 0

Réponse apportée
Taking data from loops and the plotting them outside the loop
Initialize these variables m=1;u=1;c=1; replace i with m,u and c in their cases if x == 1 y(m,:) = 1000*h; ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How do I call a subfunction (local function)?
Option-1 pass Board argument out from function and pass in Board_size Board= Initialize_Board(Board_size); function part fun...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
polar plot Phase response data against Magnitude response data
polarplot is the command for polar plotting. polarplot(theta,rho) The only catch is theta is in radians so you've to convert d...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Hello I need help with for loop incrementing. Filterbanks
In your code, you are designing only 1 filter which is for the last value of k because fir1 is outside for loop for k = 1:N ...

presque 6 ans il y a | 0

Réponse apportée
Index in position 1 exceeds boundaries
I am amusing that T_c is an 11x11 matrix. see this line of code suppose i=11 and j=2 T(i,j) = (T_c(i-1,j) + T_c(i+1,j))/4 + T...

presque 6 ans il y a | 0

Réponse apportée
Callback Function of uimenu
when uimenu (undo redo) callback goes to undo or redo functions, the parent of the hObject is uimenu and not the figure itself. ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How to create a callback function for each drop down value that displays its own .JPG image in appdesigner.
add image in app, suppose its name is Image Create a drop down menu suppose its name is DropDown. Add 4 items and name them Im...

presque 6 ans il y a | 0

| A accepté

Question


Two SImilar answer of a MATLAB Question
Hi everybody, i am new to Mathworks and jsut started giving answers to MATLAB questions. Sometime when i answer a question, the...

presque 6 ans il y a | 1 réponse | 0

1

réponse

Charger plus