답변 있음
in this loop value of n is 0.05 and value of t is 0.700. If I run this loop, then for 'o = 1'. the matrix generatd fr U does not contain the lat element i.e. 0.700 and the V matrix does not contain first element - 0.700. Please help
Please put your question in the main body and use the subject line to describe the problem in a few words. If the other mfil...

거의 14년 전 | 0

답변 있음
Plot Circles from Text FIle
Once you have imported the data, if x,y are the center coordinates t=[0:.01:2*pi]; plot(x+r*cos(t), y+r*sin(t),'color',[...

거의 14년 전 | 0

답변 있음
Help optimizing/vectorizing a code in which loops are used to fill several vectors
Here's one way to do it sc = []; i = (~C & D); sc(i) = A(i); o3 = zeros(n,1); CpD = C + D; i3 = find(CpD...

거의 14년 전 | 0

| 수락됨

답변 있음
Delay/Pause After command in R2012a
If you have low memory due to memory hogging applications or you have very little RAM there could be a delay when you switch app...

거의 14년 전 | 0

답변 있음
Trying to make a simple calculator/multiplyer. Only works for the first time.
You're reassigning handles.edit_box1 which loses your handle. Instead, use x=str2double(get(handles.edit_box1,'String')); ...

거의 14년 전 | 0

| 수락됨

답변 있음
Copy figure - bad quality
Save it as a .emf or .png file. These retain image quality for graphs and plots with lines.

거의 14년 전 | 0

답변 있음
Real Time Matlab Graphing
Here's an _*example*_ of plotting one parameter. You don't really need the comparison of _datenum_ with _current_ since I put in...

거의 14년 전 | 0

| 수락됨

질문


Change color order of legend
I have a number of parameters that I want to plot or not plot based on whether the user selects them in a GUI. If a parameter is...

거의 14년 전 | 답변 수: 1 | 0

1

답변

질문


Why is the autocolor green of plot not the same as plotting 'g'?
Why don't plot(x1,y1,x2,y2) and plot(x1,y1,'b',x2,y2,'g') have the same color green line? Can you make them the...

거의 14년 전 | 답변 수: 1 | 1

1

답변

답변 있음
Cubic Spline Fit-Just confirm the code
right. You can verify this by plot(X,Y,,'.',x,y);legend('Samples','Spline')

거의 14년 전 | 0

| 수락됨

답변 있음
adding year to plot using datetick
You have 1:iNumObs as the x-axis. I assume this is where you want the years. If your data is on a yearly basis, just add the fir...

거의 14년 전 | 0

답변 있음
Set current figure without making it visible
Do you want to manipulate the figure 'MyPicture'? Is that why you want it 'current'? If so, you don't have to make it current. ...

거의 14년 전 | 1

답변 있음
Trouble with saving polts
jpg format is not optimal for graphs. Better to use .emf, .ai, or .png.

거의 14년 전 | 0

| 수락됨

답변 있음
if i have a plot, how do i have find the derivative of the plot?
Do you have a preferred method of taking the derivative? There are many. A simple one (that does not work well for noisy data) i...

거의 14년 전 | 0

답변 있음
Why is this code looping?
You've got variables that aren't initialized, aa,d, and indices must be positive integers. 'difference' does not seem like a pro...

거의 14년 전 | 0

답변 있음
Plotting three histograms as a curved line on the same graph
plot(xout1,n1,xout2,n2,xout3,n3); For transparent hist h=findobj(gca,'Type','patch'); set(h,'FaceColor','white');

거의 14년 전 | 0

| 수락됨

답변 있음
how can I call a function which get the answers numberically
You didn't give much info on your problem but I assume you just want the form of a function. Here's a simple example. funct...

거의 14년 전 | 0

| 수락됨

답변 있음
Change marker and color plotting
I think the answer in this question is similar and may help: http://www.mathworks.com/matlabcentral/answers/33614-color-coding-...

거의 14년 전 | 0

답변 있음
constructing a particular "if statement"
isnan(x) tests for NaNs (returns a 1 for each NaN, and a 0 otherwise) (x==0) tests for 0s (returns a 1 for each 0, an...

거의 14년 전 | 0

답변 있음
how to randomly vary 2 numbers?
x = 2*round(rand(30,1)) - 1;

거의 14년 전 | 1

| 수락됨

답변 있음
continuing a script after interruption
At various points (places that take a long time to execute) you could add tests that determine if you need to execute that porti...

거의 14년 전 | 0

답변 있음
redefine array in for loop
y1-1 means the vector y1 with the quantity 1 subtracted from it. The commented code shifts the elements by one element. Which...

거의 14년 전 | 0

질문


Assignin variables in a stand-alone application
I have a GUI with a button that uses the assignin() function to send variables to the 'base' for debug and analysis purposes whe...

거의 14년 전 | 답변 수: 2 | 0

2

답변

질문


Indexing structured arrays
I have a two structures that have identical fields, but different lengths. I want to append part of one structure to the other. ...

거의 14년 전 | 답변 수: 1 | 0

1

답변

질문


Control of arrow keys
I have a gui with next and back buttons that display successive graphs. Is there a way to enable the left/right arrow keys to co...

거의 14년 전 | 답변 수: 1 | 0

1

답변

질문


Append/Alter string in Title
I would like to append additional text to the title of a plot. How do I "get" the title string in order to append the added text...

대략 14년 전 | 답변 수: 1 | 0

1

답변

질문


Removing grid/edge lines in pcolor() figure
I have a figure drawn using pcolor(). A lot of small grid lines are drawn that effectively darken the figure so that you can't s...

대략 14년 전 | 답변 수: 5 | 0

5

답변

질문


Assign dates from cell array to matrix elements
I have a file I'll call testdoc.csv. It's in the format below: header site, date, time, parm1, parm2 1098,2/23/2012,...

대략 14년 전 | 답변 수: 2 | 0

2

답변

답변 있음
Labeling using datetick on a scatter plot?
You should post the answer.

대략 14년 전 | 1

답변 있음
Combining matrices
Paul, Try find() or a straight comparison (if you don't need to know the indices). For example, function [num_periods, num_...

14년 초과 전 | 0