Réponse apportée
How to display workspace results with certain digits
num2str(P, '%.2f') num2str(T, '%.0f')

presque 11 ans il y a | 0

Réponse apportée
How can I standardize figure sizes
figure('position', [0, 0, 400, 300])

presque 11 ans il y a | 1

| A accepté

Réponse apportée
Fourier transforming from x and y columns
u = fft(y);

presque 11 ans il y a | 0

Réponse apportée
scaled image of plot
I think the result would look awkward, (300000 x 75 is quite an extreme format). But you can do it: 1. plot the graph, 2. save t...

presque 11 ans il y a | 0

Réponse apportée
How to read the range and corresponding Values
Instead of reading the file, code your table as T = [10 315 330 345; 20 315 335 345; 140 355 370 ...

presque 11 ans il y a | 0

Réponse apportée
how to make a function that discreminate between scalar and vectors in matlab
You should use Matlab's functions for your task: isempty, isscalar, ismatrix. Further, classify is a function in the statistics...

presque 11 ans il y a | 0

Réponse apportée
need help with " Error using vertcat Dimensions of matrices being concatenated are not consistent"
Your t has 51 values. Next you try to use t an index into your 3x3 matrix by Qout_doot(t) That does not work, because ...

presque 11 ans il y a | 0

Réponse apportée
findout the second largest element in each row and its location in a matrix
A=[1 2 3 4 5; 6 7 9 8 10; 11 12 14 13 15]; % remove highest value in each row sz = size(A); [~, ind] = max(A, [], 2);...

presque 11 ans il y a | 0

Réponse apportée
Has anyone implemented moravec corner detector in matlab??
I just did if for you: function C = moravec(I) %MORAVEC Moravec corner detector % % C = MORAVEC(I) % % T...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
How to Add random noise to a signal
x = linspace(-2*pi, 2*pi); plot(sin(x) + 0.5*rand(size(x)))

presque 11 ans il y a | 2

Réponse apportée
How do I find the row number where the first zero occurs and last zero occurs in an excel spreasheet?
x = [1 4 5 8 0 0 0 0 6 5 1 4 6 0 0 0 0 0 4 5 6]; first0 = find(x == 0, 1, 'last'); last0 = find(x == 0, 1, 'first');

presque 11 ans il y a | 1

Réponse apportée
Trying to input a range of numbers and generate a matrix...
You write "C seems to be a 100 x 100 matrix with repeated rows", but it is not. The differences between the rows are just quite ...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
need help with " Error using vertcat Dimensions of matrices being concatenated are not consistent"
When you vertically connect matrices using ; the matrices must have the same number of columns. A = ones(10, 3); B = zeros...

presque 11 ans il y a | 1

Réponse apportée
How to change a specific part in a specific line in a text file?
Use patchline('test.txt', 'a = 5', 132) patchline('test.txt', 'b = 60', 133) using my function function patchlin...

presque 11 ans il y a | 1

Réponse apportée
Optimization through iteration - help!
x = 1/sum(x)*x;

presque 11 ans il y a | 0

Réponse apportée
how to make a function that generate uniformely distributed random matrix
Define your function as function r = myrandi(limit, a, b) r = ceil(limit*rand(a,b)); Check with a= 10; b = 3000; ...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
Creating new vector that only has duplicates from original vector.
[ur1 a b] = unique(r1); r2 = r1(ismember(r1, ur1(find(histc(b, unique(b)) == 2))));

presque 11 ans il y a | 0

Réponse apportée
Help recursive function matlab code
You need to know the value of udisk for one k, like k=0 to define an end of the recursion. Assuming that udisk(0) = 1, the def...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
inserting variables in \textrm.
text(x, y, ['\textrm{' variable2 '}'], ...)

presque 11 ans il y a | 0

Réponse apportée
If loop giving me troubles
Your for loop uses j but in the if clause you check for i, which is always 1. Is that really what you intended to do? If so, you...

presque 11 ans il y a | 0

Réponse apportée
how to change values in matrix by indices
index = 1:9; ieven = mod(index, 2) ==0; index(ieven) = 2*index index(~ieven) = 0

presque 11 ans il y a | 0

Réponse apportée
how to create string includes '
Use '' for every ' that you need in string, like: disp('That''s not hard to understand.') or >> my...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
How do I plot a semicircle with lines at the maxima?
You can use line to draw a line.

presque 11 ans il y a | 0

Réponse apportée
How to access elements of a structure without the use of a loop ?
event1LFS = mean(cellfun(@(x) x.SP.LFS2LMS, Running));

presque 11 ans il y a | 0

| A accepté

Réponse apportée
Replace some values of a vector with another vector which has a different size
source(source == 1) = a

presque 11 ans il y a | 2

| A accepté

Réponse apportée
Save plot is not the same as plot on screen
Do not set the YTickLabel, use set(gca, 'YTick', 5000:5000:20000)

presque 11 ans il y a | 0

Réponse apportée
[ANSWERED] Converting .txt file from an URL to a matrix
D = urlread('http://asc.di.fct.unl.pt/ice/TP1/Aluminio.txt'); X = reshape(sscanf(D, '%f'), 2, [])';

presque 11 ans il y a | 1

Réponse apportée
Phase spectrum and phase angle
pa = angle(fft(s));

presque 11 ans il y a | 0

| A accepté

Réponse apportée
randperm in while loop
In this solution you have a growing array in a loop, which is not the fasted way, but you do not have to fiddle with indices: ...

presque 11 ans il y a | 1

Réponse apportée
Cut around the center of a matrix
szcut = 3; i1 = (size(A, 1) - szcut)/2; ind1 = i1+1:i1+szcut; B = A(ind1, ind2); If A is not square or if you want to ...

presque 11 ans il y a | 0

Charger plus