Community Profile

photo

jonas


Last seen: Today
478 total contributions since 2018

Please do not send private requests per e-mail, as I wish for my contributions to reach a broader audience. If you specifically want help from me, feel free to grab my attention by sending an email with a link to your question.

Contact

jonas's Badges

  • Explorer
  • First Review
  • Guiding Light
  • 12 Month Streak
  • Revival Level 1
  • Thankful Level 1
  • Knowledgeable Level 4
  • First Answer

View details...

Contributions in
View by

Answered
How to use the same .mat files in different activities AppDesigner
You could put the content of the .mat file in a public property. Go to code view > select properties > add a public property. ...

2 días ago | 0

Answered
Time plotting in MATLAB
You can delete the secondary label (undocumented property), delete(ax.XAxis.SecondaryLabel) ...but I would just plot the data ...

2 días ago | 0

Answered
Daily average of several years data
This will probably work [~,~,G] = unique([SST(:,1),SST(:,2)],'rows') out = splitapply(@mean,SST(:,4),G); You should end up wi...

2 días ago | 0

Answered
how to create diagonal stripes in a specific area of plot
Try this FEX function https://se.mathworks.com/matlabcentral/fileexchange/30733-hatchfill This could also work for i = -size(...

3 días ago | 0

Answered
Finding time difference that meet criteria
First make sure your data is in duration format. %making up some data t1 = (hours(10):hours(2):hours(24))'; t2 = t1 + rand(nu...

3 días ago | 0

Answered
Using Pie Charts as nodes in a plot of a graph
I was quite surprised to find a FEX function that seems to do exactly what you're looking for. You could try this: https://se.m...

5 días ago | 1

| accepted

Answered
How to increase xticks and labels?
You can specify the xticks manually. For example: ax = gca; dist = days(10); ax.XTick = date(1):dist:date(end) You may want ...

5 días ago | 0

| accepted

Answered
3D plotted shape is not following curvature of data points
Try this FEX function https://se.mathworks.com/matlabcentral/fileexchange/63730-surface-reconstruction-from-scattered-points-cl...

5 días ago | 1

| accepted

Answered
hello everyone please can someone help me with stock price prediction. That is I wrote this code and from the I vector , I want a code that will remove indexes from the I vector more than 60 seconds. Thanks
You can adapt this to your needs A = readtable('LSE1.csv') t = datetime(A{:,1},'inputformat','dd.MM.yyyy HH:mm:ss.SSS') dat...

5 días ago | 0

| accepted

Answered
convert csv file and write to another .m file
Error message says that table class is not supported. You can pass the content of the table or just read the data as a matrix di...

6 días ago | 1

Answered
Converting Colors to Other Colors
Load image RGB = imread('image.png'); Image is stored as a nxmx3 matrix, where the 3 layers are red, green and blue pixel inte...

6 días ago | 0

| accepted

Answered
take averages of obvervations for each month
Try this instead retime(T,'monthly','mean') where T is a timetable example t = (datetime(2020,1,1):days(1):datetime(2021,1,1...

6 días ago | 0

| accepted

Answered
problem with csv to .m conversion
try readmatrix() or readtable() instead Data = readmatrix('100Cr6.csv','NumHeaderlines',1,'DecimalSeparator',',');

6 días ago | 1

Answered
Scroll bar on App designer
In 2019a you can check the "Scrollable" box under Interactivity. I've tested it for uipanels and the main uifigure.

4 meses ago | 0

Answered
Common X label for 2x2 subplots without using for loop?
Here is how you can set a single centered x- and y-label on a 2x2 plot. h1=subplot(2,2,1); h2=subplot(2,2,2); h3=subplot(2,2,...

7 meses ago | 3

| accepted

Answered
How to make section distance of temperature
Simply skipping the loop and changing the line inmask = inpolygon(xg(:),yg(:), bx , by );%define which pixel exist in the poly...

8 meses ago | 0

| accepted

Answered
Change color outside region of polyshape
load data.mat % Gridded data in = inpolygon(X,Y,lon,lat) uvi_mean=uvi_mean'; uvi_mean(~in)=NaN; pcolor(X,Y,uvi_mean); shad...

9 meses ago | 2

| accepted

Answered
display the data points to a boxplot
The boxplot is not plotted against the correct x-values. The inserted x-array is treated as the grouping variable and the ticks ...

más de 1 año ago | 1

| accepted

Answered
How can I convert tables to array, given that these tables contain variables with similar variable names?
It is unclear if you want to output an array or a table, but the nature of the error message suggests that you're trying to comb...

más de 1 año ago | 0

Answered
Converting the Domain of an Array
Read about scatteredInterpolant and post some data if you need help. Using meshgrid and griddata would probably suffice, but you...

más de 1 año ago | 0

| accepted

Answered
polarplot and colormap in polar coordinate
I don't know if there's a built in function for this. For scattered data you could use polarscatter(strike2(:), dip2(:), [],DPp...

más de 1 año ago | 0

Answered
How to plot lines instead of symbols in loop
The problem is that you are plotting one data point at a time, which means that each point gets a separate handle and is thus no...

más de 1 año ago | 0

Answered
plot traveltimes axes configuration
Try this. You can set 'xtick' to [], if you want to retain only the labels. out = load('tvect.mat'); tvect = out.tvect; for i...

más de 1 año ago | 0

| accepted

Answered
Frustrating datetime and datestr
Not sure why you'd want to convert from datetime to datestr, but here's your solution: datestr(t,'dd-mmm-yyyy HH:MM:SS')

más de 1 año ago | 1

| accepted

Answered
How to get correlation for multiple columns
Why not just calculate the entire correlation matrix, and then extract the first row or col? cm = corr(X) c1n = cm(:,1) ...

más de 1 año ago | 2

| accepted

Answered
How to get different colours in a matrix with imagesc?
I made an attempt at fixing your code. What you describe with colors is for RGB images, to display with *imshow* not *imagesc*. ...

más de 1 año ago | 1

| accepted

Answered
creating an equal lateral triangle in matrix
You could do something like this: poly = polyshape([1 2 1.5],[1 1 2]) plot(poly) set(gca,'xcolor','none','ycolor','no...

más de 1 año ago | 1

Answered
Bound fill between two bounds, data given
Should be easy using either *fill* or *polygon*. Just make sure you close the curve by flipping one of the bounds. For example: ...

más de 1 año ago | 1

| accepted

Answered
Plotting points on a 2D filled contour?
Not sure I understand the question, but you should be able to do that easily by using contourf and scatter. For example, let...

más de 1 año ago | 0

Answered
Unique color for every plot line
Here's an example that will give you truly unique colors from a colormap of your choice. % Create 10 data series XY...

más de 1 año ago | 0

| accepted

Load more