Answered
How to change the scaling of columns in an array to a different scaling of the same data points on a plot?
Excuse me if I misunderstand the question, but my take away is that you are asking how to use the basic <https://se.mathworks.co...

7 years ago | 0

| accepted

Answered
Visualizing density of points?
You can probably use *hist3*. See some similar questions here: <https://se.mathworks.com/matlabcentral/answers/415851-how-to-...

7 years ago | 1

| accepted

Answered
How do I convert a cell array with string, double, and NaN values to a double array
My original solution was obviously flawed, so credits to <https://se.mathworks.com/matlabcentral/profile/authors/2950957-guillau...

7 years ago | 0

| accepted

Answered
How to change scale of ploted graph of an axis
|xmin| and |xmax| are the axes limits. set(gca,'xtick',xmin:.1:xmax)

7 years ago | 1

Answered
Adding column values to a cell
You could do something like this: % find segments of objects obs=~contains(data_2(:,1),'-'); locs=find([diff([0;obs;0...

7 years ago | 0

| accepted

Answered
Plot line colors and legend colors don't match
This question is asked almost on a daily basis. Use plot handles as input to the legend function, and you won't have this proble...

7 years ago | 4

| accepted

Answered
convert date and time in seconds
Here's a solution with <https://se.mathworks.com/help/matlab/date-and-time-operations.html *datetime*> data=load('matlab.ma...

7 years ago | 1

| accepted

Answered
find the average of a vector with specific condition ?
Credits to <https://se.mathworks.com/matlabcentral/profile/authors/2950957-guillaume *Guillaume*> for cleaning up my original co...

7 years ago | 0

| accepted

Answered
How can we generate points with an increasing interval?
You have to play around with the X and Y coordinates to get the type of mesh you are looking for. Easiest I can think of is the ...

7 years ago | 0

Answered
How can I create a Risk Matrix Plot?
I wrote a template you can use based on imagesc. See attached image for results. %Define risk matrix 1-3 (1 low - 2 medium...

7 years ago | 1

| accepted

Answered
Issues Plotting Equation for a Range of Variable
From your code it seems you are trying to utilize function handles, but your syntax is a bit off. Try this instead: ARone =...

7 years ago | 0

Answered
Help understanding the algorithms used in this code.
I've tried to decipher this rather cryptic code. It appears to essentially read a binary file of size 98 x 98 x 111 and store th...

7 years ago | 1

| accepted

Answered
Sample rate calculation: How can I identify when value changes and calculate the time between points
Not sure if this is a complete answer, but here is how you can find the changes. You can then calculate the time between changes...

7 years ago | 0

Answered
¿What do I have to change when need to compare the value of a n position from a matrix with a variable type char?
Let me suggest a different approach: % Input color colores = input('Ingrese los colores de la resistencia eléctrica que des...

7 years ago | 0

| accepted

Answered
finding number of peaks in a noisy signal
_"...find-peaks because its not accurate and count also peaks that are not relevant"_ That is because you do not know how...

7 years ago | 0

| accepted

Answered
How to pick out the details of a specific line in an iterative graph?
Try this instead. It's faster and you store everything for easier post-processing of results. %Projectile motion %Initi...

7 years ago | 0

| accepted

Answered
how to create different plots in the same figure and create different yaxis for all the plots
As already pointed out by Star Strider, the key is |rotate|. I just wanted to add this template for reproducing this specific pl...

7 years ago | 0

Answered
How to fill 2-D closed loops with lines? Boundary of this closed loops are extracted as output from slicing a STL file.
I'm not one hundred percent certain this is exactly what you are looking for, but this algorithm does the following: Creates a ...

7 years ago | 3

| accepted

Answered
Problem plotting with 4 columns
Here's a solution using |textscan| instead of |readtable| fid=fopen('Test_data7.csv') formatSpec='%s%d%d%d'; out=text...

7 years ago | 0

| accepted

Answered
Problem plotting with 4 columns
The problem is with your data import, as the csv is a bit messy. This is the cleanest import out of many attempts. Results attac...

7 years ago | 0

Answered
Hi, everyone!
As expected, your code returned the error _Unable to perform assignment because the size of the left side is 3-by-1 and the ...

7 years ago | 0

| accepted

Answered
How to repeatedly remove the connecting lines between the first an the last points on a surf plot.
Here is your _lastkurven_! TT=readtable('Lastkurven.xlsx'); Date=TT.Date; Time=duration(days(TT.Time),'format','hh:mm...

7 years ago | 0

| accepted

Answered
How process many structured arrays at once
As you've already read, do not. You already have your data in a |struct|, which is much more convenient than indexed variables. ...

7 years ago | 0

Answered
how to create a scatter plot and add contourlines for a specific level
The argument, which can be found in the <https://se.mathworks.com/help/matlab/ref/fcontour.html#bu62qy6-1_sep_shared-LevelList d...

7 years ago | 0

Answered
create a array base on specific condition ?
v=A(find(A~=0)); vid=find(A~=0); B=A B(vid)=B(vid)-[v(2:end) 0] not the most elegant solution

7 years ago | 0

Answered
Filter data according to Date and Other constraints
It is definitely not necessary to _split_ the data if the purpose is to calculate the daily minimum temperature. Here's how to g...

7 years ago | 0

| accepted

Answered
How to make a Heatmap Calendar plot
I made something similar to what you were asking for. It's just something I put together for fun, so there are definitely some s...

7 years ago | 2

| accepted

Answered
sum of array elements with specific condition?
This seems to be what you are after: fliplr(cumsum(fliplr(A))) ans = 9 8 8 7 6 6 5 5 4 4 4 3 2 1 5th digit is off...

7 years ago | 1

Answered
How to draw more latitude and longitude on a given map
I'm still not sure exactly what you want to do. However, this should give you a pointer in the right direction. First example sh...

7 years ago | 0

Load more