Answered
How to find the second interesection between two plots?
Regarding your last version/query... If you only care to the nearest index location, sure. The same idea can be written more...

12 years ago | 2

Answered
xticks and lables for figure with 2 y axes
[hAx,hL]=plotyy(x,[A B]*100,x,C); set(hAx(2),'xtick',[]); % don't show any ticks on 2nd x-axis linkaxes(hAx,'x') ...

12 years ago | 0

Answered
Problem in importing textfiles
What error(s), if any did you get? With that file structure, simply x=importdata(filename); should work altho don't s...

12 years ago | 0

Answered
Not so rhetorical question: Why the common practice of writing lines of code without white space?
_...Is [compactline] really as easy to read as this [brok en line]?_ In my view, yes, the compact version _is_ as legible (or...

12 years ago | 2

Answered
Partial plot in the same figure
Not positive I follow precisely, but taking a guess of what you mean...excepting you're got a disconnect in that if length(ap)=1...

12 years ago | 2

| accepted

Answered
Table combine cases across columns
>> num2str(x.','%1d').' ans = 000 100 110 211 121 212 221 222 222 122 >> whos ans Name Size By...

12 years ago | 1

| accepted

Answered
Efficient way of finding common elements of two arrays?
doc intersect % and friends

12 years ago | 4

| accepted

Answered
Is it possible to compare 2 strings only some of the same alphabet not the whole?
Base Matlab doesn't have the pattern matching with the general substring search for any substring within the two without specifi...

12 years ago | 2

| accepted

Answered
Conditional logic if possible empty result query
Then separate the two and add the conditional.. condition1 = d1<=r & x(source)<x & x<=x(destination); % first condition lo...

12 years ago | 1

| accepted

Answered
Non Linear Least Square fitting for large data
doc spline % and friends Knowing the end purpose of the fitted line may be of some help in refining a response.

12 years ago | 1

Answered
How can I align pos/neg numbers with fprintf?
>> xx=[219 8.0199807e-001 -2.2447408e-002 4.5720000e-002 220 8.0199807e-001 -2.2447408e-002 5.0800000e-002 221...

12 years ago | 1

Answered
plotyy - how to change line width, colour and xaxis labels
I don't have the last release w/ the new graphics engine so I use the *set* solution... set(hLine,'linewidth',3, ... ...

12 years ago | 2

| accepted

Answered
Parsing Binary Data When Data types are mixed.
doc memmapfile

12 years ago | 1

Answered
how do i make the output of axesm fill more of a figure window?
You're misinterpreting what the doc is saying...it doesn't say the *axesm* function object includes all the possible named prope...

12 years ago | 1

| accepted

Answered
'fmincon' and how to declare parameters without 'global'
Per the doc's, the function for *fmincon* _is a function that accepts a vector x and returns a scalar f_. You've got a whole lo...

12 years ago | 2

Answered
How do you assign a variable name to an array at specific location
Your problem above is you're not handling the character array in the assignment... m(i,:)=filename: will solve that but ...

12 years ago | 0

Answered
Using the output of one m-file in Matlab as the input to another? Establishing the connection
Given the function (let's call it *f1*) and the vector t over which to compute... C=f1(t); % the concentration D=...

12 years ago | 1

Answered
Add current date when I save a file as a comment
Within Matlab on it's own automagically, not that I'm aware of. You can use external version control systems w/ Matlab that hav...

12 years ago | 1

| accepted

Answered
how do i isolate the elements above both main triangles of a square matrix?
l=logical(ones(size(x))); % a logical array of size of given array (x) mask=triu(l)&fliplr(triu(fliplr(l)); % mask for th...

12 years ago | 1

Answered
HELP copy matrix and inserting in another matrix
W(2:end-1,2:end-1)=U; using the fact size(W you already created is size(U)+2 and you wanted it centered. If it weren't cen...

12 years ago | 1

| accepted

Answered
how to zero pad a matrix?
More than likely you're actually looking for the "dot" operator *.^* to return the element-wise values of the vector _x_ I'd ven...

12 years ago | 2

| accepted

Answered
Addition of matrix in a loop
First define a couple of useful function handles... >> f1=@(x) 2*x+5; >> f2=@(x) 5*x-2; Then find the intersecting valu...

12 years ago | 1

| accepted

Answered
matlab file indexing problem with many file
_"Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Sear...

12 years ago | 1

Answered
Remove space between Matrix elements?
That's all a fignewton of the display formatting; there are no spaces internally. At the command line, you can close up the s...

12 years ago | 1

Answered
Matlab and various symbol printing
AFAIK, no, there is no unified place where all of the above are provided at one point. The doc for the Matlab-specific TeX subs...

12 years ago | 0

Answered
using a function as the "main" script
It's always changing with each release, but the one area that may make some difference is the level of optimization done by ...

12 years ago | 2

Answered
How to plot 16 curves that are same y axis and different x axis on the same figure?
Nothing special, just mung on the axes position to shrink the height instead of width and instead of hiding the horizontal dimen...

12 years ago | 1

| accepted

Answered
how to show minor gridlines?
Per doc grid grid(gca,'minor') toggles the state of the minor grids and grid on turns only the major grid o...

12 years ago | 6

| accepted

Answered
how can I find time delay between two signals with corrolation?
Okay, I got back... :) Looking at a couple of these traces, it appears that basically the trigger for the shorter (v) was per...

12 years ago | 1

| accepted

Load more