답변 있음
Converting GPS time to Local Time
t2=datestr(seconds(t)+hours(12),'HH:MM')

거의 8년 전 | 0

| 수락됨

답변 있음
Adding legend for iteration and if condition graph
Try this, title('Graph of behaviour against iteration'); xlabel('iteration t'); ylabel('beha...

거의 8년 전 | 0

답변 있음
Details on surf plot
As an alternative to waterfall, I just learned that you can change the meshstyle of surfaces h=surf(peaks) h.MeshStyle='...

거의 8년 전 | 1

| 수락됨

답변 있음
The sum of the loop elements
First of all you need to store the values of fi_z_i in every iteration, so that you end up with a vector consisting of all latit...

거의 8년 전 | 1

| 수락됨

답변 있음
how to fill in zeros in index not used?
Not sure I understand the question, but... B=zeros(1,3); %Case 1 B(2)=5 %Case 2 B(1)=5

거의 8년 전 | 0

답변 있음
Map axis description (degrees).
It is easier than you think, try this landareas=shaperead('landareas.shp','UseGeoCoords',true); axesm ('mercator','Frame...

거의 8년 전 | 1

| 수락됨

답변 있음
I need to plot around 60 graphs, i wrote the following code but the graphs are too small to see them easily, how could I plot them bigger than now?
Plotting 60 graphs in a single window will make each axes small. Your options are to increase the size of the figure set(gc...

거의 8년 전 | 0

답변 있음
Plot in log-log
I'm fairly sure that is in fact a loglog-scale. Try: axis([0.1 100 0.1 100]) and see for yourself. The y-range is too na...

거의 8년 전 | 0

| 수락됨

답변 있음
hi every body.my question is how can i plot subplot like this picture in Matlab. i want draw dotted line cross the subplots like red dotted line and write on it like blue circle.
(1) learn how to use subplots MATLAB has a function |subplots()| which is really easy to use. Personally I prefer the functio...

거의 8년 전 | 1

| 수락됨

답변 있음
Change the name of a figure in a Correlation plot
Just set the name of your figure by set(gcf,'Name','string')

거의 8년 전 | 0

| 수락됨

답변 있음
How could i search a text for varying patterns
Not sure if it's the best way, but the code starts at str(5) and ends at the dash, so this should work [~,s] = regexp(str, ...

거의 8년 전 | 1

답변 있음
How can I find a minimum only before a peak has been detected?
What you are looking for seems to be the beginning of the peak, which is not necessarily a valley. A simple method to approximat...

거의 8년 전 | 0

| 수락됨

답변 있음
Import excel sheet, multiply each column with a variable, and save the results as a new cell array
The following solution is inefficient but works for R2016b and later. See Guillaume's answer for better solutions, also includin...

거의 8년 전 | 0

| 수락됨

답변 있음
Opening different files in for loop with dlmread?
You need to call one file at a time in dlmread. Change to: for k = 1:3 N = string([1,2,3]); caesarN = strcat(...

거의 8년 전 | 0

| 수락됨

답변 있음
find rows with all but one nonzero element
Here's one way: A(sum(A,2)==1,:)

거의 8년 전 | 0

| 수락됨

답변 있음
Detect beginning and end of inhalation in respiration signal
Based on the data provided in the comments, here's one way to use |findchangepts| to locate continuous steep slopes. As previous...

거의 8년 전 | 1

| 수락됨

답변 있음
How do i remove all blank lines from excel sheet in matlab?
One fix would be to remove the empty lines, which is quite simple. However, a better fix would be to not introduce this issue to...

거의 8년 전 | 0

답변 있음
How do I turn on (make visible) Major Tick Labels on a logarithmic Colorbar?
So, finally finished installing latest release. Try setting the ticks manually and it should work. For the example given in the ...

거의 8년 전 | 0

| 수락됨

답변 있음
how to display correlation coefficient on graph?
The code you attached works perfectly fine, just replace the variable names and add after your own code tmp=corrcoef(da...

거의 8년 전 | 0

| 수락됨

답변 있음
How to plot a hatched data set over a contour plot?
If you want to hatch an area based on your data, then try something like this: figure;hold on [x,y]=meshgrid(1:49,1:4...

거의 8년 전 | 0

답변 있음
How to extract information from the filename?
If you know something about the structure, then this is quite simple. Let's say the structure is [year.day.hour.min], with some ...

거의 8년 전 | 1

답변 있음
How to do this kind of contour plot?
Basically you don't define data along |lines| but rather on a full rectangular grid. Let's say you want to plot data between x=0...

거의 8년 전 | 0

| 수락됨

답변 있음
Is there a simple approach to adding spaces before and after every number in a cell array, where each cell is a combination of numbers and letters?
I'll just go ahead and give an alternative answer because I spent way too much time trying to solve this seemingly easy problem...

거의 8년 전 | 0

답변 있음
trying to model points inside a sphere
This will generate a sphere with random points inside of it (code adapted from the original question): if true clear ...

거의 8년 전 | 0

답변 있음
How filter data by specified criterion
A is your 6x6 cell array, then: [rows,~]=find(ismember(A, 'Interupt')) A(rows,:)=[]; should do the trick

거의 8년 전 | 1

| 수락됨

답변 있음
Vector comparison by value produces strange results
try to type format long and compare again

거의 8년 전 | 0

| 수락됨

답변 있음
how to create a Image using matrix
http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F

거의 8년 전 | 0

| 수락됨

답변 있음
3D plot on given X,Y coordinates
There are a number of issues with your code, such as wrong type of input for meshgrid and surf. Assuming that you have three...

거의 8년 전 | 0

답변 있음
Make rows of square bracket data
A=str2num(A) reshape(A,[6 4])'

거의 8년 전 | 2

| 수락됨

답변 있음
Plot with two different x-axix
Try this. clear all;close all figure; h=plot(k1,Depth1) ax1=gca ax1.XColor = 'r'; ax1.YColor = 'r'; ...

거의 8년 전 | 1

| 수락됨

더 보기