Respondida
putting tick marks on a graph/trajectory
https://ch.mathworks.com/help/matlab/ref/text.html

casi 6 años hace | 0

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 1

| aceptada

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

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

casi 6 años hace | 0

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 1

| aceptada

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

casi 6 años hace | 0

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

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

casi 6 años hace | 1

| aceptada

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

Respondida
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)

casi 6 años hace | 7

| aceptada

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

casi 6 años hace | 1

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

casi 6 años hace | 1

| aceptada

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 3

| aceptada

Respondida
'Timeseries' vs 'Structure with time data' for plot
x = rand(1,10); figure,plot(x) figure,stairs(x)

casi 6 años hace | 0

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

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

casi 6 años hace | 0

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

| aceptada

Pregunta


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

casi 6 años hace | 1 respuesta | 0

1

respuesta

Cargar más