Community Profile

photo

jonas


Last seen: Today
482 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
Changing the value of a spinner from another spinner
I'll just put it here for future reference :) Like most other objects, the slider is adjusted by changing the value field ...

1 day ago | 1

| accepted

Answered
How to plot 3d from scattered dataset captured from xlsx file?
You need gridded data to use surf. You have scattered data. xyz = readmatrix('sample.xlsx'); [x,y,z] = deal(xyz(:,1),xyz(:,2)...

1 day ago | 1

| accepted

Answered
Animating a complicated 3d graph
I just made some changes to your code to show you a different way of getting a similar result. Basically, just update the ydata ...

2 days ago | 0

Answered
Drawing line segments in a 3d plot
Something like this? A = rand(6,5); startv = [A(:,1),A(:,2),A(:,5)]; endv = [A(:,3),A(:,4),A(:,5)]; figure;hold on scatter3...

3 days ago | 1

| accepted

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

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

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

6 days 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(...

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

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

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

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

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

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

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

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

10 days ago | 0

| accepted

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

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

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

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

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

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

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

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

1 year 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')

1 year 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) ...

1 year ago | 3

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

1 year ago | 1

| accepted

Load more