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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 1

| akzeptiert

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 1

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 1

| akzeptiert

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 7

| akzeptiert

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

fast 6 Jahre vor | 1

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

fast 6 Jahre vor | 1

| akzeptiert

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 3

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

| akzeptiert

Frage


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

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden