Réponse apportée
GUI data sharing problem?
Put the call to UIGETFILE in the callback for the pushbutton. Then immediately after the return, simply use the open the file a...

plus de 13 ans il y a | 0

Réponse apportée
In plotting Y(x)=10^x, for x=0:5 matlab gives y-axis tick labels as 0 1 2 3 4 and last as 5 x 10^5. How can I get all tick labels as 10^x?
You could use the MATLAB logarithmic plotting routines: x = 0:5; semilogy(x,10.^x) % Also, see SEMILOGX, LOLOG

plus de 13 ans il y a | 0

Réponse apportée
Bin my Data set
v = data(:,2); % Velocity mv12 = mean(v(v>=1 & v<=2)) % Mean of velocity on [1 2].

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
adding every element of an array with every element of another array?
A = 0:4; B = 10:16; bsxfun(@plus,A,B')

plus de 13 ans il y a | 0

Réponse apportée
how to change a number randomly???...
labels(randperm(numel(labels)))

plus de 13 ans il y a | 0

Réponse apportée
white grid on black axes?
set(gca,'col','k','xcol','w','ycol','w')

plus de 13 ans il y a | 0

Réponse apportée
How can I substitute a function into another equation to plot the answer?
f = @(a) (2048 + 128*a.^6 + a.^12 + sqrt(16384 + 2048*a.^6 + 80^12 + a.^18)).^(1/3); r =@(a) (1/16)*( a.^4 + a.^8./f(a) + f...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
How can I count the number of occurences of elements within vectors from randsample?
POP = 'abcdefghijklmnop'; N = 1000; M = 5; x = zeros(N,M); for a = 1:N x(a,:) = randsample(POP,M); % Eac...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
how to assess the standard error of coefficient estimates with regress function
Was your other question answered sufficiently? If so, please accept the answer and close that question before asking it again.....

plus de 13 ans il y a | 0

Réponse apportée
array shifting problem, help
V = [6 5 4 3 0 1 2 4 0 0 0] V = [V(2:end-1) 0]

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Find a row in a matrix in faster way
Here is a faster method, in the script I use to compare: M1 = rand(1000,8)>.5; M2 = rand(1000,8)>.5; tic % M...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Why after plotting on axes the ButtonDownFcn doesn't work?
>> AxesH = axes('ButtonDownFcn', 'disp(''Axes click!'')'); Axes click! Axes click! >> plot(1:10) % Now clicking doe...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
Using multiple strings to name a variable
*Don't do it!* It is highly recommended that you do not create variables this way, as you will have no end of trouble dealing w...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
How to calculate R-square using robust linear regression function
[brob, rob_stats] = robustfit(x,y); rsquare = corr(y,brob(1)+brob(2)*x)^2

plus de 13 ans il y a | 0

Réponse apportée
Error: 'model' parameter must be a string."what should I do?!!!
From the help (which you can read too!): _SimOut = sim('MODEL', PARAMETERS) simulates your Simulink model, where 'PARAMETERS'...

plus de 13 ans il y a | 0

Réponse apportée
How can I change axes labels?
set(gca,'ydir','normal')

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Simple question about vector remainders
y = mod(x,20).*(x>20) % if no x>40 Or if some value may be greater than 40, y = max(x-20,0)

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
surfs and meshplot problem
[M,EPS] = meshgrid(1:30,11:40); v = 3; Z = exp(M.*log(EPS)+v.*EPS); surfc(M,EPS,Z) set(gcf,'render','zbuf')

plus de 13 ans il y a | 0

Réponse apportée
Unwanted figure transparency in Windows 7
It might help if you set the renderer to zbuffers. set(gcf,'render','zbuffers') But if you have any transparent graphi...

plus de 13 ans il y a | 0

Réponse apportée
how to do a TRENDLINE (polyfit?how?)
See the help for the <http://www.mathworks.com/help/matlab/ref/polyfit.html POLYFIT> function. I see you edited the question ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Print a message if a condition is met
x = [1;2;3;4]; p = [1.5;3.5;3.2]; idx = x(1:end-1)<p & p<x(2:end); SOL = p(idx)

plus de 13 ans il y a | 0

Réponse apportée
Key presses associated with colour
I have no idea what you are doing by looking at the code as there is too much left out. But from your description, this _might_...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Hello! How can I make MATLAB return the smallest, positive, purely real value from a column matrix?
Uf = [0.84888 + 0.74301i -1 0.31434 + 1.1736i 0.31434 - 1.1736i 3 -0.4...

plus de 13 ans il y a | 3

| A accepté

Réponse apportée
How to find the location of a minimum value in cell array?
L = cellfun(@(x) find(x==1),q,'Un',0); Now L has all the information you need.

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to create a personalized colormap?
You can easily do it. Make the surface go from white to red as you say... peaks(100); set(findobj('type','surf'),'e...

plus de 13 ans il y a | 0

Réponse apportée
Sum of previous elements in a matrix(dynamic way)
Say your matrix is like: A = [1 2 3; 4 5 6; 7 8 9; 10 11 12; 13 14 15; 16 17 18]; ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Change Default White for Zero in Contour Plot
That produces no contour plot at all... C = contourf(longitude,latitude,temp) Warning: Contour not rendered for constant...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Plotting [1,n) cell arrays against each other
Try your code without calling the AXIS function. Judging by your data you do not have cell arrays, you have numeric arrays and ...

plus de 13 ans il y a | 0

| A accepté

Charger plus