Beantwortet
plotting an engine characterisstic map
Sounds like contourf is the function you are looking for: <http://www.mathworks.se/help/techdoc/ref/contourf.html>, If you...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
How to search pathname for string
You are comparing two strings for equality, and the comparison is not case sensitive (help strcmpi). What you wanted to do, I gu...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
How can stop "while" loop
Your condition should be [x y z] = size(U3); condZ = sum(sum(sum(U3,3) == z)) > 0; condY = sum(sum(sum(U3,2) == y)) >...

fast 14 Jahre vor | 1

Beantwortet
values in falling in each histogram bin
sig=randn(1,440); %random data set bin1=round(1+log2(size(sig,2))); %optimal number of bins edges = linspace(min(sig), m...

fast 14 Jahre vor | 1

Beantwortet
How do I save a workspace variable to a .txt file?
save('myFile.txt', 'excel', '-ASCII','-append');

fast 14 Jahre vor | 6

| akzeptiert

Beantwortet
How can I forecast an integer related to other 5 numbers?
Quick solution, you can try multiple linear regression: data = rand(10,5); res = rand(10,1); betahat = regress(res,data)...

fast 14 Jahre vor | 0

Beantwortet
Problem using interp1 cubic
Try inverting your x y data interp1(x,y,...) to interp1(y,x,...) Cheers!

fast 14 Jahre vor | 2

Beantwortet
Plotting fit and data on the same plot - define endpoint of fit line
Maybe this is what you want: x=sort(rand(10,1)); y=sort(rand(10,1)); [fiteqn,rsqr] = fit(x,y,'poly1'); plot(x,y); ...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
Can interp1 function be used when the time interval of data isn't uniform?
Yes, but the longer your interval the more uncertain your results.

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
About interp1.m (1D interpolation) function?
Interp1 draws segments between succesive points. If there are two points with the same ordinate, the problem is which one to cho...

fast 14 Jahre vor | 1

Beantwortet
ode parallel processing help
PARFOR loops can not be nested. So rewrite your code to avoid the double for loop. For that you can create a matrix of indices: ...

fast 14 Jahre vor | 1

Beantwortet
Assignment has more non-singleton rhs dimensions than non-singleton subscripts, please help
Hello In your code newfilename=char(filename); is an array of characters, that you then try to assign strings to: ...

fast 14 Jahre vor | 0

Beantwortet
textread not working with .text file
You could use: [A,' ', 1] = importdata('myFile.txt); %And the variables you want: col1 = A.data(:,1); col2 = A.dat...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
Read or write in the .xlsx files
I'll make it an answer. I think you can, see the link: <http://www.mathworks.se/matlabcentral/answers/46161#comment_95151>...

fast 14 Jahre vor | 1

| akzeptiert

Beantwortet
genetic algorithm- need help
In Matlab, when you have two matrices, say A of size 3 * 4, and B of size 4 * 12, if you multiply A*B the result will be a matri...

fast 14 Jahre vor | 0

Beantwortet
How can I add a new toolbox to an existing installation of Matlab R2011a?
Have a look: <http://www.mathworks.se/support/solutions/en/data/1-1CBD3/?solution=1-1CBD3> Cheers!

fast 14 Jahre vor | 0

Beantwortet
How to delimit the number of decimal places in a colorbar?
contourf(peaks(60)) colormap cool h=colorbar('location','southoutside'); yt=get(h,'XTick'); set(h,'XTick...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
Is there a way to dynamically save a plot figure into a jpeg file without having to type the filename i would be saving it into?
saveas(figureHandle,['filename' num2str(numberId) '.jpg']); For more info: help saveas Cheers!

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
Unmatched Matrix multiplication in Cell Arrays to create reducing count.
Assuming your array is called data: data=[100000;data]; data = cumprod(data); Cheers!

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
difference between using interp1( X,Y, xi, 'linear', 'extrap') and doing the extrapollation after curve fitting
The methods are different and will not give the same results. The curve fit will fit a line (one and only one) to all your po...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
Fitting with constrained coefficients
You might want to have a look at: fminsearchbnd, that you can find in the file exchange : <http://www.mathworks.com/matlabcen...

fast 14 Jahre vor | 0

Beantwortet
My problem is, the display of my plot were dots. how will i able to display it with a curve line. the main code shoud be inside of the for loop.
You are plotting point by point. You might want to try: x=0.3:0.01:0.5; y=15e-9*exp(x/25e-3)-1; plot(x,y,'k-'); %blac...

fast 14 Jahre vor | 1

Beantwortet
ANDing Areas of multiple polygons given vertices
You might want to use polybool: help polybool Cheers!

fast 14 Jahre vor | 1

| akzeptiert

Beantwortet
Reading xls with special characters.
Sounds like you need to change Matlab's character encoding. help slCharacterEncoding You probably need to set is as: ...

fast 14 Jahre vor | 0

Gelöst


Add two numbers
Given a and b, return the sum a+b in c.

fast 14 Jahre vor

Gelöst


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

fast 14 Jahre vor

Gelöst


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

fast 14 Jahre vor

Gelöst


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

fast 14 Jahre vor

Gelöst


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

fast 14 Jahre vor

Gelöst


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

fast 14 Jahre vor

Mehr laden