Question


eval fails with load when path or filename has space(s)
If I run load [dirpath filename] and dirpath or filename has a space, it loads the file just fine. But if I use ...

presque 14 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Header seperation and column matching
Suppose your file has a header like radiation, temperature, voltage data.... Then your program would get the head...

presque 14 ans il y a | 0

Réponse apportée
Plot for different value of a
x = [-2:0.1:2]; a = [.5, 1, 1.3, 1.95]; figure; for i=1:length(a) z = x.*(a(i)-x.^2); plot(x,z);hold on; ...

presque 14 ans il y a | 6

| A accepté

Réponse apportée
How to draw a block diagram for one equation with three variables in simulink
_______ ___ z-----| 2 |___| + | |_____| |___|---- y _______ | x-----| -5 |---| |______|...

presque 14 ans il y a | 0

Réponse apportée
Least squares adjustment of two positions with distance constraint
Once you add the constraint, the LS solution becomes much more difficult. However, there are also a number of approaches, such ...

presque 14 ans il y a | 0

Réponse apportée
Can somebody tell me what is wrong with the following code?
You're syntax is incorrect for Matlab code. First, you don't need to declare your variables. Take out the do's, begin's, and t...

presque 14 ans il y a | 0

Réponse apportée
location zero crossings of the signal
You could let this be your zero crossing function. zind = diff(x>0);

presque 14 ans il y a | 0

Réponse apportée
Subscripted assignment dimension mismatch error question
Maybe c is a row vector so it doesn't match the dimensions of out2(:,1) which is a column vector.

presque 14 ans il y a | 1

Réponse apportée
Eliminating outer for-loop
I don't see any recursion going on. So I don't see why you can't compute it without any loops. To compute h, try I = o...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
How to get value from nested table?
boundaryindx appears to be a cell array. To convert to a number, one way is, cell2mat(boundaryindx{dtbung,1}(1,1))

presque 14 ans il y a | 0

Réponse apportée
Error importing files in a ForLoop
You are not indexing Str. Replace the first half of your program with Str = {...}; % your teams for i=1:length(Str)...

presque 14 ans il y a | 0

Question


Loading data files deployed with standalone exe.
I have a standalone exe and I want to add some data files to deploy with it. Currently I make the user browse to the files, b...

presque 14 ans il y a | 1 réponse | 0

1

réponse

Question


Editing many GUI parameters in GUIDE
Is there a way to globally change a parameter in the .fig file while using GUIDE? I want to change all my fontunits to normaliz...

presque 14 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
hamming window matlab code
if x is an n-element input signal and t is the time scale w = 0.54 - 0.46*cos(2*pi*t/(n-1)); wx = x.*w;

presque 14 ans il y a | 1

| A accepté

Réponse apportée
How to solve this kind of equation
x = [-20:.01:20]'; y=sin(x)+exp(0.25*x-1.5); figure;plot(x,y);grid

presque 14 ans il y a | 1

Réponse apportée
How do I define a structure that has an element which is an array?
1. Find out which assertion fails. The code looks fine. 2. Replace the 'for' loop with y = sum([personnel.name.salary]);...

presque 14 ans il y a | 0

Réponse apportée
What are the MATLAB job options?
Years ago, while in grad school I decided that it would be best to learn one programming language very well, instead of a lot of...

presque 14 ans il y a | 4

Réponse apportée
Nonlinear fit of segmented curve
Not sure how you would do that, but you could try using a sigmoid function which will get you close, relatively speaking. Someth...

presque 14 ans il y a | 1

Réponse apportée
dissipation in frequency fft
Your x vector is too short. You are trying to access up to index 7+5 in your equations. Make x 5 elements larger than the large...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Global Variables Warning, not Error
I use setappdata(), getappdata() functions to access variables throughout my GUI.

presque 14 ans il y a | 0

Réponse apportée
copy plots matlab to word
for graphs with lines and text, save as .emf or .png.

presque 14 ans il y a | 0

Réponse apportée
How to interpolate to get two values for one variable?
Use the same index for each parameter. If you want to know the values of X for a given value of Y, yind = (Y==yvalue); ...

presque 14 ans il y a | 0

Réponse apportée
How to solve algebraic equations exercise?
You have written the equations in the form Ax = b You can solve for x with x = A\b;

presque 14 ans il y a | 0

Réponse apportée
Legend Choose Scatter and not plot
legend(num2str(alpha(1)),num2str(alpha(2)),num2str(alpha(3)),'refrence','location','best') plot(y0,y1,'b',y0,y1(:,2),'k',y0,y...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
generation a train of impulses in simulink
One option is to use the pulse generator. Instead of fixed values, use variables and define them in your system. Make sure you...

presque 14 ans il y a | 0

Réponse apportée
Determining new x,y location of an object
You know which cell in A that the pedestrian is located, right? Say it's the A(r,c) cell. Then, ped = (c-1)*2 + r; % loc...

presque 14 ans il y a | 0

Réponse apportée
I want to change cart to polar !
theta = atan2(t,r)*180/pi;

presque 14 ans il y a | 0

Réponse apportée
Trouble learning loops, sub-plotting, etc. for multiple iterations of SVD for image compression
N=[2,5,10,25,50,100]; for i = 1:length(N) C(N(i)+1:end,:)=0; C(:,N(i)+1:end)=0; D=U*C*V'; %Use sing...

presque 14 ans il y a | 1

Réponse apportée
How to plot x-y coordinates which correspond to elements which are repeated at least once
This may get you started A = 1040x3 array [r,c] = size(A); [tags, iA,ic] = unique(A(:,1)); % rats that have been capt...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
Converting 4 bits to 5 bits
you only need 4 bits for values under 16. The fifth bit in your case is 0. Try a=20. and you will see the fifth bit.

presque 14 ans il y a | 0

Charger plus