Answered
how can I merge matrices
[D(h), E(h)] = find(F(h)==B);

bijna 9 jaar ago | 0

Answered
fitting a logarithmic data
since you are tring to do a nonlinear regression why don't you use nlinfit? ownFunc = @(A,x) A(1)*exp(-A(2)/x)+A(3)*exp...

bijna 9 jaar ago | 0

Answered
Write a Matlab script that asks for an integer (n) and then computes the following based on the value of the integer:
prompt = 'Give an integer value? '; n = input(prompt); % check if integer number is provided if ~(abs(round(n)-n) < e...

bijna 9 jaar ago | 1

Answered
Error for textscan command
s=textscan(fid,'%f%f%f'); worked on the data you provided

bijna 9 jaar ago | 2

Answered
How can you rearrenge a large datafile to....
instead of using load, you could use textscan to read in the txt file endNotReached = true; counter = 1; fid = fope...

bijna 9 jaar ago | 1

| accepted

Answered
Is this a bug on the zero power of matrix?
I think this answer is correct since _If exponentiation means repeated multiplication, then A^0=I is the base case for all A._ ...

bijna 9 jaar ago | 0

Answered
How to get a push button to end a loop in a GUI?
you need to set a flag when you press the pusbutton to stop so in your pushbutton4 callback you should put this instead of the c...

bijna 9 jaar ago | 1

| accepted

Answered
Manually adding plots and legends with a Button Press
if I understand your question correctly this should work, since you need to be placing brackets around each legend entry for mat...

bijna 9 jaar ago | 1

Answered
How to read only first/last column from a .dat file to make faster the code
why don't you use textscan? See code below. Couldn't test if it is faster or not since the data is not attached fid = fopen...

bijna 9 jaar ago | 0

Answered
Rearranging filenames with extension .number (Ordering)
if all your filenames have the same length (which seem to be the case for the file in attachment) you could do this fin = c...

ongeveer 9 jaar ago | 0

Answered
how to remove the some ploted node and assisgn the new location in the 2d graph
you need to use a handle when plotting the node plotHandle(i) = plot(X(i),Y(i)); Then later you can use deleta(pl...

ongeveer 9 jaar ago | 0

Answered
Finding if numbers are within range
I do not think you need to use a for loop for this problem, instead using a vectorized solution is much faster and easier to rea...

ongeveer 9 jaar ago | 0

Answered
Matlab: Read more data from a single column file
you can just use textscan with %f format and 2 headerlines. This will read in the first vector and will stop as soon as it hits ...

ongeveer 9 jaar ago | 0

Answered
Assign different strings in a cell array with a number
maybe you could try using unique on the cell array so that you know all possible names. Then you could assign numbers to these n...

ongeveer 9 jaar ago | 0

| accepted

Answered
compare with a plot the distribution of my data to the extreme value (Gumbel) distribution
calling the help for ecdf this indicates that the function returns the empirical cumulative distribution function (cdf), f, eval...

ongeveer 9 jaar ago | 0

Answered
How can I load and read data from excel file?
why doesn't xlsread work? If interested in more functionality you could also use the actxserver to open the excel applicati...

ongeveer 9 jaar ago | 0

Answered
Saving an image in matlab with same dimension (250 x 250)
do you know this submission on the matlab file exchange http://www.mathworks.com/matlabcentral/fileexchange/23629-export-fig ...

ongeveer 9 jaar ago | 0

Answered
Value not multiplying by -1
in a for loop there is no need to increment the _i_ so just leave out i = i+1 as this is done automatically. Also ...

ongeveer 9 jaar ago | 1

Answered
For loop Issue, Loops, Row Col Indexing Issue
This does not seem to be a problem with the for-loop. Are you sure that the SVMM model is correct and that it gives as output 'Y...

ongeveer 9 jaar ago | 0

Answered
Is there any way to implement autocomplete function in an edit text with a popup menu?
I have done this two years ago but it was not easy I must say. I finally used a keyPressFunction to detect which strings were t...

ongeveer 9 jaar ago | 0

| accepted

Answered
Index exceeds matrix dimensions
your array only contains four elements (first line of your code) in your loop you are trying to acces arr{i} where i goes from ...

ongeveer 9 jaar ago | 0

Answered
How can we get back our original image after jumbling. Is there any reverse method in matlab??
you can only do this when you also have stored information on the indices that were used for the shuffling. _for example_ if ...

ongeveer 9 jaar ago | 0

| accepted

Answered
How to save all values generated from a for statement in different variables
you could try to use a structure that would look something like this: for i =1:intn currentName = ['Ls' num2str(i)] r...

ongeveer 9 jaar ago | 0

Answered
How can I find X for given Y value in a fitted curve?
you can do this with the function Y = feval(cfit,X); which you could have easily found yourselve if you would have type...

ongeveer 9 jaar ago | 0

Answered
can i use more than one hold on function in same code?
the question is not completly clear (it helps if you would use the code lay-out option so that is better parsed), but it does no...

ongeveer 9 jaar ago | 0

Answered
Can i find points between two points in a plot?
you can use polyfit to find the equation of the straight line between the two points and then evaluate the X-values for which yo...

ongeveer 9 jaar ago | 0

Question


why does I-H-O neural network predict constant values?
my neural network was working reasonably, except for the prediction of negative values sometimes which is impossible physically ...

ongeveer 9 jaar ago | 0 answers | 0

0

answers

Answered
how to use urlread in post method
Turns out it was not possible to do what I wanted in Matlab so I had to migrate to Selenium-C#-chrome to get the job done. In th...

meer dan 9 jaar ago | 0

| accepted

Answered
How to plot this function?
just create a vector of relevant CO2 concentrations and call your temperature funciton for each value so: carbon = 1:10:...

meer dan 9 jaar ago | 0

Answered
error in while loop
shouldn't it just be while ~con because now your while condition is never true so of course the code within your while...

meer dan 9 jaar ago | 0

Load more