Answered
Error encountered when attempting to use Text()
Looks like he defined an array named _text_ in which case he's aliased the builtin *text* function. Using a set of subscripts l...

12 years ago | 1

| accepted

Answered
Plot Matrix in different colors of matrix depending on a different matrix
*plot* returns a _line_ object and the color is associated with the line, _not_ the individual points. Hence, one must either *...

12 years ago | 0

Answered
How to show 95% quanile in a Boxplot ?
By the TMW definition of the _'whisker'_ parameter, their extent is based on the assumption of normality and are computed as q3 ...

12 years ago | 5

| accepted

Answered
Moving Y coordinate to a new column for corresponding X values
If it's always two pair as shown, then simply selection and rearranging works quickly... >> xy=[2 155; 2 345; 3 155; 3 345;...

12 years ago | 0

Answered
How do I fix this uigetfile multiselect error?
In future, please trim amount of code to include only significant sections...this is a lot to wade thru to find the pertinent li...

12 years ago | 1

Answered
one scalar from two vectore
If _a_ is a numeric array of bits, V=v(logical(a)); Alternatively, keep a as logical array to avoid the cast or if it mu...

12 years ago | 0

Answered
Cross correlating matrix for each column
help xcorr ... xcorr(A), when A is an M-by-N matrix, is a large matrix with 2*M-1 rows whose N^2 columns contain th...

12 years ago | 0

Answered
Issue plotting data points as text
text(allthres, allwf,subjstring.') should do it if I understand what you're after.

12 years ago | 0

Answered
how transform excel data (freq, angle, power) to (time, angle, power) ? is it using inverse FFT ? please explain to me, thanks
If that's all the info you have, you can't--you don't have any phase information left that would need to regenerate a time histo...

12 years ago | 0

Answered
Function for Script. I need to write a Function that selects the positive and negative numbers from a matrix. How to write this?
function [p,n]=splitsigns(x) % return positive/negative values from array x in vectors p/n, respectively p=x(x>0); ...

12 years ago | 0

| accepted

Answered
Converting cell data into dates that can be plotted
Nothing says values have to be uniform; those examples must be generating a date series rather than converting given dates. Ass...

12 years ago | 0

| accepted

Answered
columns and rows in text file
If you need a specific format, *dlmwrite* and friends aren't (your friends, that is)... fmt=[repmat('%.2f\t',1,2) '%d\n']; ...

12 years ago | 1

| accepted

Answered
large 3D Matrix calculation
d=repmat(f,size(r,2),1).-repmat(r.',1,size(f,2));

12 years ago | 0

Answered
finding indexed values of vector
Use the optional second index return value from *sortrows* [mx,imx]=sortrows(FWHM); Keep the first N of each...

12 years ago | 1

Answered
Can anyone help me fix my code?
For the former, organize the data by column in two commensurately-sized arrays of T, phi. *plot* will then treat each column as...

12 years ago | 0

| accepted

Answered
inputting dates in format dd/mm/yyyy (or editing a cell array or similar strings without loop)
No problem with the date format; tell *datenum* what format is... >> dates={'01/04/15 00:15' '01/04/15 00:30'}.' dates = ...

12 years ago | 2

| accepted

Answered
Difference of two 2-dimensional matrices
v=diff(y)./diff(t);

12 years ago | 0

Answered
How do I connect data points on log scale?
Like *plot*, *loglog* expects two vectors X and Y (or an array if multiple Y) loglog(3:2:9, [3.371779e-04, 2.148437e-05, 4....

12 years ago | 0

| accepted

Answered
How to write such a loop?
>> cell2mat(arrayfun(@(x,y) repmat(x,y,1),IDX1,segMem1,'uniform',0).') ans = 1 1 1 2 2 1 ...

12 years ago | 1

| accepted

Answered
while reading data from text file in matlab 1.0e+03 * ?
Yes, and??? Your data range from <10E-3 to >1E3 so Matlab by default displays with the largest and an exponent so as to make th...

12 years ago | 1

Answered
How I Can Read Matrices From text file and display it at separate Matrices?
Presuming you really mean a text file and not Notepad formatted, doc textscan doc importdata and friends. help ...

12 years ago | 0

Answered
how to find mean values?
Presuming rest meets the above example of only a single demarcation value between sections; if there can be a sequence of those ...

12 years ago | 0

Answered
a way to use data from a function in another function without running whole program
No magic is available, sorry. You'll have to save the results when they're computed and then write the function(s) to be able t...

12 years ago | 0

Answered
Need help using textscan to import file
A=cell2mat(textscan(fid,'%f','headerlines',10, ... 'multipledelimsasone',1, ... ...

12 years ago | 0

| accepted

Answered
I do not want to plot the 0 components of my vector; how do I remove these components without effecting the length of the vector?
For plotting, use Energy(Energy==0) = nan; instead. *plot* and friends ignore NaN entries altho if you're doing calcula...

12 years ago | 10

| accepted

Answered
What is e in The value of entropy
e (or E) is the computer-generated representation for the 10 exponent in scientific notation. Hence the value you have is -107....

12 years ago | 0

| accepted

Answered
How can I reverse the case of a selected string?
Wrap in a function... >> s='gREG'; >> ilo=lower(s)==s; >> s(iup)=lower(s(iup)); >> s(ilo)=upper(s(ilo)); >> s s = Gre...

12 years ago | 1

| accepted

Answered
Help with For loop during least square fit
>> S=[200 200 200 200 175 175 175 175 150 150 150 150]; F=[9.8E3 1.2E4 4.1E4 2.4E4 7.7E6 5.6E5 4.0E6 5.2E6 2.5E7 9E7 4.2E7 3E...

12 years ago | 0

Answered
piecewise matrix multiplication with vector
Sometimes it's just easiest to write a loop... j=0; for i=1:2:length(Y) j=j+1;; p(:,j)=Y(i:i+1,:)*r(:,j); e...

12 years ago | 1

| accepted

Load more