Answered
Is it possible to lock or fix an input value given by the user, inside a for loop?
Sure, get rid of the loop entirely...that's Matlab's forte-- ... nn=ceil(segeval/dt) t=linspace(0,segeval,nn); fun...

12 years ago | 1

| accepted

Question


Import dataset with .XLS file containing formulae
Reading an Excel with formulae for numeric values into a dataset results in those variables being interpreted as cell strings in...

12 years ago | 0 answers | 0

0

answers

Answered
How to separate data from two vectors where both vectors need to be over a threshold
>> ix=data(:,1)>22 & data(:,2)>22; >> data(ix,:) ans = 40179 111 33 40179 76 ...

12 years ago | 0

| accepted

Answered
Is it actually possible to use datetick?
Overlooked the likely culprit earlier... t = datetime(Date, 'InputFormat', 'yyyy-MM-dd HH:mm:ss'); Then, I made this int...

12 years ago | 1

Answered
Convert ordered date to formal matlab date
Don't try to "convert", just create. Given the first year and length of the list, the date number vector would simply be y...

12 years ago | 0

Answered
Iterate through an excel file and perform vector operations
That's ok (altho I'd probably not use separate variable but an array). If the arrays are _x_, _y_, _z_ and the constant point...

12 years ago | 0

| accepted

Answered
Warning: PRESTD is an obsolete function.
Sure...TMW already told you how... _"Use *MAPSTD* instead."_ (Emphasis added)

12 years ago | 0

Answered
Reading a string with %
You don't give any other information on what you tried, but there's no reason you can't read such strings into Matlab... >>...

12 years ago | 0

Answered
read text files and change format
Say what???? While that description means something to you, for us having nothing else to go on it's an almost useless problem ...

12 years ago | 0

Answered
Set Y axis ticks Red but not grid lines
You'll have to use *text* to write the tick labels to do that, *set* ting the _'yticklabel'_ property to []. Or, alternatively,...

12 years ago | 0

Question


Automating line markers, colors...
When use *plot* with an array by column, *plot* automagically cycles colors but when adding a series of lines with *hold on* aft...

12 years ago | 3 answers | 1

3

answers

Answered
ignore nan values in plotting
In your loop over the columns for k=159:100:2048 p=polyfit(XMEAN,LOGIR(:,k),1); yfit=polyval(p,XMEAN); handle ...

12 years ago | 2

Question


More efficient returning string position in cell string array
Given an array such as >> whos endtxt Name Size Bytes Class Attributes endtxt 137x2 ...

12 years ago | 3 answers | 0

3

answers

Answered
How to plot a array of double data versus array of digital time data?
"Not wanting to" is not sufficient reason not to do something very nearly equivalent (although it isn't converting to seconds so...

12 years ago | 0

Answered
Finding average at each point
>> [mean(v(1:2)) conv(v,[1 1 1]/3,'valid') mean(v(end-1:end))] ans = 1.5000 2.0000 3.0000 4.0000 5.0000 6...

12 years ago | 1

Answered
How to limit data to values below threshold and have the program return what those are then graph it?
If _AD001_ is the original signal, then try AD001(AD001<=thresh_men)=nan; This will replace the values below the thresho...

12 years ago | 0

Answered
Have MATLAB code pause and then take input from command line
doc input % plain text doc inputdlg % gui dialog box help iofun help uitools for wider scope of choices ...

12 years ago | 1

| accepted

Answered
How to convert text file with different delimiters into a matrix
Use *textscan* and a specific format string... >> l='0 qid:10 1:0.000000 2:0.000201 3:0.10090 4:0.0043000 5:0.1900000 46:0....

12 years ago | 0

| accepted

Answered
Textscan inside a loop
Presuming your file is properly formatted, should work just fine excepting you're overwriting the _ticker_ cell array each pass ...

12 years ago | 0

| accepted

Answered
Displaying a value in the plot
Well, we don't know if you're "on the right track" or not, either since you didn't show what you tried nor indicate what the pro...

12 years ago | 2

Answered
sprintf does not work when called from a function
*sprintf* doesn't print to command window, it writes output to a string variable so unless you left the trailing ";" off the lin...

12 years ago | 1

| accepted

Answered
How to extract numbers from a header line
>> A.header={'Lead Number 1 Time Step .001 Data Points 6001'}; >> fmt='Lead Number %f Time Step %f Data Points %f'; >> hdrVa...

12 years ago | 0

Answered
How to add (minor) ticks on loglog plot?
Already answered in newsgroup... <http://www.mathworks.com/matlabcentral/newsreader/view_thread/337658>

12 years ago | 0

| accepted

Answered
Addtion of two matrix.
The problem is the line C(i,j)=0 after the loop that creates the zero-filled array--when done, the i,j indices are one g...

12 years ago | 0

| accepted

Answered
How to value value NaN in a 2d matrix?
<http://www.mathworks.com/matlabcentral/fileexchange/4551-inpaint-nans>

12 years ago | 0

Answered
Fill command for logarithmic plots axes labels
The basic deal is for some unbeknownst and unfathomable reason, TMW hasn't implemented the Tex/LaTex interpreter in the ticklabe...

12 years ago | 0

Answered
Finding two values for y in a graph with the same x value
You'll have to use *interp1* on the two branches of the _y_ vector. This would essentially be using two sub-vectors from 1:loca...

12 years ago | 0

Answered
How to constantly receive data from serial port without using fread all the time?
Well, no, not really...that's what *fread* does is to handle the incoming serial port for binary data. What you're probably l...

12 years ago | 0

| accepted

Load more