Réponse apportée
How to divide a line into several parts and obtain the coordinates?
This roughly what you're looking for? for i= 1:number_of_iterations B(i) = Bi + i*l; end

presque 12 ans il y a | 0

Réponse apportée
Why cell arrays and structure consume extra memory?
The memory for a structure needs to contain: The size of the structure. The names of the fields. Something that says "He...

presque 12 ans il y a | 3

Réponse apportée
'Decimal Fixed Point Scaling' To 'Binary Fixed Point Scaling' Conversion
floating = 10.72; % this is a floating point value (32 or 64 bit value) scaled = floating * 10; %floating point value (32 or ...

presque 12 ans il y a | 0

Réponse apportée
How to do noise analysis of input signal?
You should figure out "what flicker noise means" - I would take (temporal) noise to be the RMS variation from the expected value...

presque 12 ans il y a | 0

Réponse apportée
Renaming Imported Variable with Initally Unknown Name
eval or setfield can do something for you I think You would do better to change your code that reads the files to not name th...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Why the trigonometry results are different
That's likely just the effect of small numerical errors. After all, according to matlab, 1E300 + 1 - 1E300 = 0, and 1...

presque 12 ans il y a | 0

Réponse apportée
why we will get voltage spike across inductors
Inductors get voltage spikes across them when a voltage is suddenly applied to it. Its what they do. The voltage on an induc...

presque 12 ans il y a | 0

Réponse apportée
Quad error, simple function,
I guess that you've missed off declaring a few operations as elementwise operations, and it's getting out a square matrix instea...

presque 12 ans il y a | 0

Réponse apportée
variables into a data structure
OriginalData.Name = Name; OriginalData.Em = Em; OriginalData.Ex = Ex; etc. etc.

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Polynomial fitting with multiple variables and unequal matrix length
It kinda depeneds how those variables interact. A "simple" method is to use the polyfit function to get a suitable relations...

presque 12 ans il y a | 1

Réponse apportée
Is there a a function/code which can make the darker bits darker and the lighter bits lighter?
Yup. Calculate the difference from the image's mid level (128 probably, but this depends on how you're dealing with the image...

presque 12 ans il y a | 0

Réponse apportée
Storing results from a for-loop in a vector of zeros
Indexing in matlab is done from a base of _one_. So, A(3479) = 1; will change the 3479th element of A to 1. You ne...

presque 12 ans il y a | 0

Réponse apportée
gca function in matlab
gca returns the handle to the current axis. - it generates one if there is no current axis.

presque 12 ans il y a | 1

| A accepté

Réponse apportée
How to Check dimension mismatch of an element?
numel(q) < 3

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Trouble plotting multiple graphs
Theres something wrong with your sums. By hand, calculate D, for A = 0.1 and M = 0 & 100. You ought to see that D is negative...

presque 12 ans il y a | 0

Réponse apportée
I have a data of binary format. i.e the data is stored in .dat file format. How to open these files in MatLab and then ve to find the pentad average of these data.
What you need to do is open the dat file, read out the data, then process that data. fid = fopen(filename,'r'); % open th...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How can a save to a NEW excel file
xlswrite will generate new files if the filename you give it doesn't already exist. delete(filename) will delete an existing ...

presque 12 ans il y a | 0

Réponse apportée
exporting listbox to excel while adding spaces in between variable names
Its playing with cell arrays: Variable_Name = {'One','Two','Many'}; chosen_variable_names = Variable_Name(index); Output...

presque 12 ans il y a | 0

Réponse apportée
index must be a positive integer or logical.
The issue is that, on the second time through the loop, i = 1.01, you need to make i into an integer. I suggest having, ...

presque 12 ans il y a | 0

Réponse apportée
How to feed a function's output later on?
I reckon this will do it: function z = f(x,y) persistent old_x old_y old_z if isempty(old_x) old_x = x; old_...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Compare two matrices in Matlab
answer = matrix2(matrix1 == number_of_interest)

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Converting a matrix of points to a list of x & y coordinates
Index_of_As = find( matrix ); [down along] = ind2sub(size(matrix),Index_of_As);

presque 12 ans il y a | 0

Réponse apportée
find duplicate values, sort them and get their indices
This might be what you're looking for: Amplitude(Position == 15 & Ray == 1) Ot maybe: RayNumbers = Ray(Position == 15...

presque 12 ans il y a | 1

Réponse apportée
help with error in coding
Change D{1,m}(n,:) = B; To: D{1,m}{n} = B;

presque 12 ans il y a | 0

Réponse apportée
How to simplify a code to remove a for loop and make it faster?
One of these ought to do it: B = C' * D; or B = C' * D'; You might need to transpose B to get what you want.......

presque 12 ans il y a | 0

Réponse apportée
logical operators in if statement
Your loop's final execution (barring errors) will have x = length(list) list(x+2) is liable to throw an error when x + 2 is g...

presque 12 ans il y a | 0

Réponse apportée
How to bring data from variables(workspace tab) into gui?
I can think of four ways to skin this cat: 1. Declare the variables as global in all workspaces you want access to them. (I'...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Interesting confusion in matlab - Number format
Double format numbers are only accurate to about 15 significant figures. When you do sums, you can get errors at the 15th signif...

presque 12 ans il y a | 0

Réponse apportée
xlsread merge & center and highlight in red
Ok, theres three things you have to do: 1. Determine the visual basic code that excel uses to achieve that. Record a macro ...

presque 12 ans il y a | 0

Réponse apportée
How can I delete repeated elements? (not unique!)
output = [input(1) input(find(diff(input))+1)]

presque 12 ans il y a | 0

| A accepté

Charger plus