已回答
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 ...

4 years 前 | 1

| 已接受

已回答
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...

4 years 前 | 0

| 已接受

已回答
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 ...

4 years 前 | 0

| 已接受

已回答
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(...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

已回答
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...

4 years 前 | 0

已回答
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...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 1

| 已接受

已回答
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...

4 years 前 | 0

已回答
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...

4 years 前 | 0

| 已接受

已回答
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" "" "" "" ...

4 years 前 | 1

| 已接受

已回答
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...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

已回答
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)

4 years 前 | 6

| 已接受

已回答
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...

4 years 前 | 1

已回答
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...

4 years 前 | 1

| 已接受

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

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 3

| 已接受

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

4 years 前 | 0

已回答
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; ...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

| 已接受

已回答
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 ...

4 years 前 | 0

已回答
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...

4 years 前 | 0

已回答
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. ...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

| 已接受

提问


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

4 years 前 | 1 个回答 | 0

1

个回答

已回答
Button to clear an axes and a table content - App Desginer
app.myTable.Data = [];

4 years 前 | 0

| 已接受

已回答
how to plot a grouped bar chart with categories and error bars
Take transpose of y

4 years 前 | 0

| 已接受

加载更多