Risposto
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...

quasi 14 anni fa | 0

| accettato

Risposto
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...

quasi 14 anni fa | 0

| accettato

Risposto
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)) >...

quasi 14 anni fa | 1

Risposto
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...

quasi 14 anni fa | 1

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

quasi 14 anni fa | 6

| accettato

Risposto
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)...

quasi 14 anni fa | 0

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

quasi 14 anni fa | 2

Risposto
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); ...

quasi 14 anni fa | 0

| accettato

Risposto
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.

quasi 14 anni fa | 0

| accettato

Risposto
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...

quasi 14 anni fa | 1

Risposto
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: ...

quasi 14 anni fa | 1

Risposto
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: ...

quasi 14 anni fa | 0

Risposto
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...

quasi 14 anni fa | 0

| accettato

Risposto
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>...

quasi 14 anni fa | 1

| accettato

Risposto
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...

quasi 14 anni fa | 0

Risposto
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!

quasi 14 anni fa | 0

Risposto
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...

quasi 14 anni fa | 0

| accettato

Risposto
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!

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 0

| accettato

Risposto
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...

quasi 14 anni fa | 0

| accettato

Risposto
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...

quasi 14 anni fa | 0

Risposto
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...

quasi 14 anni fa | 1

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

quasi 14 anni fa | 1

| accettato

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

quasi 14 anni fa | 0

Risolto


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

quasi 14 anni fa

Risolto


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...

quasi 14 anni fa

Risolto


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

quasi 14 anni fa

Risolto


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 ...

quasi 14 anni fa

Risolto


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...

quasi 14 anni fa

Risolto


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:...

quasi 14 anni fa

Carica altro