Answered
Method of solving system of nonlinear equations
What TMW publishes on algorithms is in the doc's for the given function, generally towards the end in an "Algorithms" section. ...

12 years ago | 0

Answered
Loading .txt that are in a cell array
You've loaded a file that seemingly contains a list of files, not the actual data. You need to either iterate thru that list ...

12 years ago | 0

Answered
Opening Sequential .txt Files and Populating Array with Data
MyFolder = Users/Chris/Desktop/Test; _...the code-error alert icon in the upper right is green, however when I run the scri...

12 years ago | 0

Answered
Can't get this to plot (Asian Option)
Yeah, it's exactly what it says it is--you've defined NRep1=1:1000:100000; as a vector and passed it to AsianCallH(...

12 years ago | 0

| accepted

Answered
How can I import spreadsheets from OpenOffice Calc?
I've not used O-O enough to know what it does about compatibility of files but clearly as far as the Matlab implementation of *x...

12 years ago | 0

Answered
Difference between plot(log(x),log(y)) and loglog(x,y)
The difference will be on the axes -- the first is a linear plot in log(x,y) whereas the second is the log-axis plot of x,y. Th...

12 years ago | 1

Answered
Passing input variables to function
OK, you're needing a cell array to hold the disparate types in one array. Write var{1} = number_jackets; var{2} = colour...

12 years ago | 0

| accepted

Answered
Adding small slope indicating triangles to my Convergence Graph
Just use *line* (after 'hold on') to add the lines then *text* to annotate

12 years ago | 0

Answered
2nd y axis on bar chart - label and data labels
How about *plotyy* instead where most is taken cre for you... y1=Dircountdata(1:end-1); % just for brevity later ...

12 years ago | 0

Answered
draw a specialized bar graph
OK, I had a few minutes to spare this morning...try the following for starters... bar(y,'group') set(gca,'xtick',1:19) ...

12 years ago | 0

Answered
Importing data from .txt, by last symbol in line.
Or, since it would seem such a file can't be very large, just use fgetl on a line-by-line basis...sotoo fid=fopen('filename...

12 years ago | 0

| accepted

Answered
how to fit linear trend in time series
p=polyfit(y,x); doc polyfit % for more details doc polyval % to evaluate

12 years ago | 0

Answered
saving multiple figures to a named path
... saveas(figure(n),fullfile(fpath,'PSTHPlots'),'bmp') They're all being saved in the location requested but you're n...

12 years ago | 1

| accepted

Answered
When use || and | in if?
Depends entirely on the purpose...the double logical operators short-circuit and return only a scalar whereas the single ones ar...

12 years ago | 1

Answered
array and minimum value and coordinate
Basically, preallocate an array of the size of number of criterion (5) by the number of pieces of data you want to keep (in your...

12 years ago | 0

Answered
How can I write a script to read multiple images from a folder and calculate its histogram equalization of the same?
See the FAQ... <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F>

12 years ago | 0

Answered
Calling functions from different scripts
Firstly, format your code so it's legible...use two blanks in front of first code line in a new paragraph. Keep at it until it ...

12 years ago | 0

| accepted

Answered
efficient use of find and ismember
The "deadahead" solution (w/o *accumarray*, I'm to brain-tired this evening to write that off the cuff... :) ) [~,ia,ic]=un...

12 years ago | 0

| accepted

Answered
Creating a function using a vector as a variable
_The output is only a 100X1 array with the "year" variable_ You're not providing return locations for the other outputs when ...

12 years ago | 0

| accepted

Answered
Problem saving vectors in a for loop
One way to rearrange the loop... Instead of for xx=0:5:350; d2(1:71)=xx; ... write xx=0:5:350; for ...

12 years ago | 0

| accepted

Answered
How to print ( ) in mathlab
results = zeros(5,10); results(1,:)= avxt; ... etc., etc., ... You will need a .' to transpose if they're column r...

12 years ago | 1

| accepted

Answered
Help with conditional statements
Need to read up on logicals in Matlab...I'll post a possible solution and leave it to you to tell me how and why it works and di...

12 years ago | 0

| accepted

Answered
Importing an ascii file in to matlab
_M=dlmread(demtest) [yields] 'Undefined variable "demtest" or function "demtest.asc".'_ Because *dlmread* is expecting a file...

12 years ago | 0

Answered
i want to speed up my code for Fourier Transform .how can i do it??
_1.when i run it ,it takes almost 3-4 hours..._ Not too surprised...amongst other things of a zillion duplicated computations...

12 years ago | 1

| accepted

Answered
Saving variable names into an cell array for later use in a for/while-loop.
It's possible, but _don't do that!_ ... To see why and ways to do the same thing w/o 'poofing' variables into the workspace, se...

12 years ago | 1

Answered
Different results in comparison of the same number, one being approach from 0.2 and the other from 0.1
See the FAQ <http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F>

12 years ago | 0

Answered
Multiple Colors in Matlab Plot
doc title % there's an example of multi-color title there title(['\fontsize{16}black {\color{magenta}magenta '... ...

12 years ago | 0

| accepted

Answered
replace multiple "1" with only one "1"
I'd go at it differently, for sure...no real need for regexp() altho it'll work >> ff3=FF1; >> ff3(~isletter(ff3))=' '; >...

12 years ago | 0

Answered
how to take out extreme event annually from the data.
I _really, Really, REALLY_ wish you'd quit this incessant creation of new threads and just carry on a linear conversation...I'm ...

12 years ago | 2

| accepted

Load more