Statistics
RANK
145
of 277,833
REPUTATION
762
CONTRIBUTIONS
0 Questions
251 Answers
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
131
RANK
3,600 of 18,798
REPUTATION
396
AVERAGE RATING
4.80
CONTRIBUTIONS
7 Files
DOWNLOADS
57
ALL TIME DOWNLOADS
4141
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
Is it possible to plot a curve with changing colours under a single plot?
As others have noted, you cannot use the plot or line commands to create a multi-color line in MATLAB today, but this is possibl...
9 days ago | 1
Generic get/set methods for class properties
You may be able to do something like this by implementing subsref (and/or subsasgn), but it isn't for the faint of heart. Using...
1 month ago | 0
Extract 2d slice from a 3d matrix
If you have a 3-D matrix, and you want just a single X-Z slice, you probably need a mix of indexing and either shiftdim or permu...
1 month ago | 0
| accepted
Precreated axes with datetime ruler and time zones
I believe the issue you are facing is that the XAxis has a specific time zone that is initialized when you first call any plotti...
3 months ago | 0
| accepted
Time Series Plot X-Axis Values Wrong Timezone - help please!
I think the problem you are having is that the data, when read from ThingSpeak, creates a datetime object with no TimeZone speci...
3 months ago | 0
Incorrect TimeZone displayed on plot
I believe the issue you are facing is that the axes/ruler has a specific time zone that is initialized when you first call plot....
3 months ago | 0
| accepted
.TimeZone data not applying to plot
I believe the issue you are facing is that the axes/ruler has a specific time zone that is initialized when you first call plot....
3 months ago | 0
How do I change the timezone of the X axis on an existing plot?
Starting in MATLAB R2023a, you can now update the time zone of the x-axis on existing plots by setting the ReferenceDate on the ...
3 months ago | 1
| accepted
how to polar plot excel data in 2D?
Your current code: M = xlsread('AntennaA.xlsx', 'H2:H26'); Is only returning a single column of your matrix (column "H"). The...
3 months ago | 1
struct for multiple shapes with similar inputs
There are options for doing this without using classes, but I think classes is probably what you want to do. I'm not sure I fol...
3 months ago | 1
Error in function streamline: interp1 sample points must be unique.
The issue you are having is the form of your X and Y data you are providing as input to streamline. The streamline doc page says...
3 months ago | 1
Join Multiple Tables horizontally (can have duplicate variables) in which some tables might be empty.
If your goal is to simply concatenate two tables, such that the first row of each table is combined into the first row of the ou...
3 months ago | 0
how to read serial pixel data into matrix without having to perform transpose operation
I can't think of any operation that can scale and transpose the data simultaneously, short of writing your own MEX function, whi...
3 months ago | 0
timer doesn't work
@Walter Roberson already pointed you to the documentation on how to Share Data Between Workspaces, which provides several ways t...
4 months ago | 0
| accepted
Filled contour plot on other planes (X-Z or Y-Z)
contourf works fine when used with an hgtransform, except it is not updating the automatically selected limits correctly, so you...
4 months ago | 1
| accepted
String convertion to date
Note, I don't speak Spanish, so I'm not sure of the proper user of "de" and "del", so this answer may need to be adjusted. I su...
4 months ago | 1
Locking the Legend even if the object is deleted
As @Bjorn Gustavsson suggests, your best bet is to create proxy objects that are represented in the legend, but are not visible ...
4 months ago | 0
| accepted
How to close a figure used for keypress function?
As @W. J. stated, your code seems to run fine if you just remove the call to UserFeedback from after the call to waitfor. Alter...
4 months ago | 0
| accepted
How to use multiple colorbars on one figure?
There are two concepts that I think you may be confusing: The colormap which is a set of colors used to map from data to color....
4 months ago | 2
| accepted
Figure Subplot Tiles Customization
I don't see an attached picture, but I think I understand what you are trying to do. First, I recommend trying tiledlayout inst...
4 months ago | 1
| accepted
Write a row and column vector as matrix index
Is meshgrid or ndgrid what you are trying to do? [X,Y] = meshgrid([4 5 3],[4 5 3]) [X,Y] = ndgrid([4 5 3],[4 5 3]) After call...
4 months ago | 1
imagesc or equivalent with datetime as x axis.
It is a bit of a hack, but another option (if you want to continue using imagesc) is to "preconfigure" the axes for datetime usi...
5 months ago | 1
| accepted
connect nodes (coordinates of a matrix rx3) with a line
You can specify the LineWidth when you call the plot command. data = readmatrix('data.txt'); x = data(:,1); y = data(:,2); s...
6 months ago | 0
How do I save plots calculated by gamultiobj separately?
Unless the code that is doing the computation is explicitly leveraging some form of parallel processing, the code that exports f...
6 months ago | 0
| accepted
sgtitle disappearing when getframe saves frame for animation
When I run a slightly modified version of your code, the resulting image includes the "main title". I tested in R2022b. Here is...
6 months ago | 0
| accepted
How to create a callback function to start and stop recording EMG Button in real time for Delsys Trigno.
I didn't dig into your code specifically, but here is code for a simple app with a timer and a start/stop button that shows how ...
7 months ago | 0
Adding transparency to one contour plot based on another contour plot
Good news! Starting in MATLAB R2022b, creating transparent contour plots is supported out-of-the-box in MATLAB. You can adjust ...
7 months ago | 2
How to plot data from cells?
When you say "plot the data", can you provide a little more information about kind of picture you are trying to create? What dat...
7 months ago | 0
| accepted
class1 as property of class2, class1 property initialization?
In your definition of mainClass you created a property with the name class1, not the type class1. This is what you want: class...
7 months ago | 0
| accepted
How does one disable the menu that appears when one hovers on a plot?
You can set the Toolbar property on the axes when you create it. ax = axes; ax.Toolbar = []; If you want that to be the defau...
7 months ago | 0