Réponse apportée
How to change both the axis value ranges
Aftab, you could simply data_km = 125 * (data + 1); where |data| would be your current one ranging from -1 to +1 and assu...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Columns with at least one zero element
Anya, you could use A = [1 2 3 0 8; 5 0 1 2 2]; col = find(sum(A==0)) col = 2 4 |col| shows the columns whi...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How can I change a quotation mark in a text string readed from an excel sheet ?
Christophe, do you mean: old_str = 'Pression d''injection' old_str = Pression d'injection new_str = strrep(old_str,...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Saveas plot using name of imported data file.
Samir, how about [pathstr,name,ext] = fileparts(filev); f = fullfile(pathstr,name); saveas(gcf,f)

presque 12 ans il y a | 1

Réponse apportée
Random Matrix to even matrix
Manoj, you could use a = 0:5; b = a - mod(a,2); Note, your vector is a row vector. Use the prime operator to turn it in...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
vertical concatenation of matrices in a loop
Yuvashree, try data = []; for fileNr = 1:8 [...] % removed code for better readability data1...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
How do I control the legend contents when the plot functions are within a for loop?
Brad, see this <http://www.mathworks.com/matlabcentral/answers/129574-how-do-i-select-data-to-legend-in-a-plot#answer_136770 ans...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
I want to see the answers of multi equations, equations are in m file
Alireza, add syms a b c d e f g h i j k l in front of the |solve| command. >> S.a ans = 0.0989281143421615866104...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
Index must be a positive integer or logical
Sebastiaan, the problem is that in A(1,1) = r(n+0.5)/(h^2)+r(n-0.5)/(h^2)+a*r(n) you are trying to access r(8.5) %...

presque 12 ans il y a | 0

Réponse apportée
How to save all trials in Matlab
M, use instead counterclockresponse(k) = getaresponse;

presque 12 ans il y a | 0

| A accepté

Réponse apportée
vpasolve for numerical solution
Richard, it seems the equation you posted cannot be satisfied. 0.95 * 2 * atan((4.5)/(2*r)) * r / (4.5) == 1 or 0.95...

presque 12 ans il y a | 0

Réponse apportée
how to check negative values are there or not in a matrix????
suchismita, use a(a<0) = 0;

presque 12 ans il y a | 13

| A accepté

Réponse apportée
Irregular measurement points and plotting
Merit, you can get started with data = [1,95.5; 3,92.8; 6,90.4; 12,89.7]; plot(data(:,1),data(:,2),'bd') % plot first col...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Help regarding use of BVP4C in solving an ODE.
AGNIVO, check out: function my_pde() e = 1.602*10^-19; %electron charge [...] %% remove code for ...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Argument 'range' for ode45
Douglas, to your first question you would choose |linspace| if you want the ode solver to *return solutions at specific times*. ...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
what's the program mistake?
Hello Ali, use instead r = solve(b==0)

presque 12 ans il y a | 0

Réponse apportée
I have a matrix of dimension a=[993,1], I need a matrix b=[331,3] such that every 3 columns of the a forms a row of b
Chris, use b = reshape(a',3,[])'

presque 12 ans il y a | 0

Réponse apportée
Problem identifying a symbolic variable as a double
Dina, did you try isnumeric(double(res)) Just in case this does not result in a "1", what MATLAB release are you working ...

presque 12 ans il y a | 0

Réponse apportée
how to find subsets
Hello, use |nchoosek| A = [1,2,3,4,5,6]; subsA = nchoosek(A,4) for four elements, for example.

presque 12 ans il y a | 1

Réponse apportée
How do I delete an element from a structure?
Douglas, use <http://www.mathworks.de/de/help/matlab/ref/rmfield.html |rmfield|>: k = rmfield(k,'options');

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Is there anyway to exceed plotting 8 data sets in a graph?
Ozgur, check out my_col = jet(20); t = 0:0.1:pi; a = 1:length(my_col(:,1)); y = a'*sin(t); hold all for ii = 1:num...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
bluetooth with LEGO mindstorms EV3
Adham, Bluetooth for the EV3 platform is not yet supported by Simulink.

presque 12 ans il y a | 0

Réponse apportée
Help me about sphere ?
Nguyen, use instead z = real(sqrt(1 - x.^2 - y.^2)); to retain the real part only.

presque 12 ans il y a | 1

Réponse apportée
Why does it gives matrix dimension must agree?
Anwesha, use R = 3e-7:1e-7:10e-7; V = 0.5; Vth = 0.011*V + (1.3e-5*V./R.^2); % note the dot in front of / sign pl...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
How to generate and use different colours on a plot and label as per the colours?
Sameer, something like x = 0:0.1:1; y = sin(x); z = cos(x); plot(x,y,'r-d',x,z,'b-o',x,y.*z,'g-*') legend('x vs y','...

presque 12 ans il y a | 0

Réponse apportée
Error plotting graph, with y behaving similar to step function
You could use something like t = [-5:0.01:5]; y = (t.^2).*(t>0) + 5*(t<=0); yy = 5*ones(numel(t),1); yy(t>0) = t(t>0...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
How to assign different values to different variables input by the user?
Dijesh, you could use the |eval| command: prompt = 'Enter data: '; title = 'Data input'; dlg_ans = inputdlg(prompt,t...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
how to get real quotient in division process?
Saima, not quite sure what you mean, but if you need more significant digits for your answers enter format long in the ...

presque 12 ans il y a | 0

Réponse apportée
Error using taylor to find Maclaurin polynomials
Samious, how about syms x f = exp(x^2); ts = taylor(f, x, 0, 'Order', 5)

presque 12 ans il y a | 3

| A accepté

Charger plus