Answered

How to read different bits from a binary file?

|I could read stream 1 (8-bits) with a command of "stream1 = fread(fileID, 113:3600112 '*uint8')".| No, do not do that. Inste...

How to read different bits from a binary file?

|I could read stream 1 (8-bits) with a command of "stream1 = fread(fileID, 113:3600112 '*uint8')".| No, do not do that. Inste...

3 giorni ago | 0

Answered

Shifting the z-position of imagesc() when used along with surf

hgtransform group with a transformation matrix that is a z translation, and parent the imagesc to that. However I would suggest...

Shifting the z-position of imagesc() when used along with surf

hgtransform group with a transformation matrix that is a z translation, and parent the imagesc to that. However I would suggest...

3 giorni ago | 0

| accepted

Answered

Find I and Q from I^2+Q^2

You cannot separate out the parts except sometimes in cases where there are constraints such as integer values. But even then th...

Find I and Q from I^2+Q^2

You cannot separate out the parts except sometimes in cases where there are constraints such as integer values. But even then th...

3 giorni ago | 0

| accepted

Answered

How to hinder ongoing spamming II?

There has been a lot of those lately! Image Analyst and I report them directly to an appropriate staff person through a side cha...

How to hinder ongoing spamming II?

There has been a lot of those lately! Image Analyst and I report them directly to an appropriate staff person through a side cha...

3 giorni ago | 0

| accepted

Answered

How can I call multiple M functions?

for i=1:100 G= WattsStrogatz(400,2,0.25); k=1:300; fos=zeros(1,length(k)); for jj=1:length(k) f...

How can I call multiple M functions?

for i=1:100 G= WattsStrogatz(400,2,0.25); k=1:300; fos=zeros(1,length(k)); for jj=1:length(k) f...

3 giorni ago | 0

| accepted

Answered

what does data_gt(:,7) == 1, :) do in Matlab?

data_gt(:,7) == 1 extracts column 7 from all rows of matrix data_gt . It then compares each of the values to the constant one, ...

what does data_gt(:,7) == 1, :) do in Matlab?

data_gt(:,7) == 1 extracts column 7 from all rows of matrix data_gt . It then compares each of the values to the constant one, ...

3 giorni ago | 1

| accepted

Answered

Error :Converged to an infeasible point. fmincon stopped because the size of the current step is less than the value of the step size tolerance but constraints are not satisfied to within the value of the constraint tolerance. <stopping criteria de

Your function is discontinuous and has only two values. fmincon is only for functions that are continuous in at least the firs...

Error :Converged to an infeasible point. fmincon stopped because the size of the current step is less than the value of the step size tolerance but constraints are not satisfied to within the value of the constraint tolerance. <stopping criteria de

Your function is discontinuous and has only two values. fmincon is only for functions that are continuous in at least the firs...

3 giorni ago | 0

| accepted

Answered

Matlab add-on

The line that shows up in your image as line 3552 is really in line 3550 of XSteam.m . You are using a corrupted version of the ...

Matlab add-on

The line that shows up in your image as line 3552 is really in line 3550 of XSteam.m . You are using a corrupted version of the ...

3 giorni ago | 0

Answered

All possible combinations of a number of an array

a = [ 1 2 3]; ua = unique(a); nua = length(ua); assert(nua <= 36, 'Sorry, this code only supports up to 36 elements in...

All possible combinations of a number of an array

a = [ 1 2 3]; ua = unique(a); nua = length(ua); assert(nua <= 36, 'Sorry, this code only supports up to 36 elements in...

4 giorni ago | 0

| accepted

Answered

How to deleted Enter char

a = regexprep(a, '[\r\n]', '') or a(ismember(a, [10 13])) = ''; %10 is newline, 13 is carriage return

How to deleted Enter char

a = regexprep(a, '[\r\n]', '') or a(ismember(a, [10 13])) = ''; %10 is newline, 13 is carriage return

4 giorni ago | 0

| accepted

Answered

What is the problem for the following code?

h = input('\nEnter step size (h) = ') x(1) = input('\nx0 = '); You need a comma or a semi-colon between those two commands. Be...

What is the problem for the following code?

h = input('\nEnter step size (h) = ') x(1) = input('\nx0 = '); You need a comma or a semi-colon between those two commands. Be...

4 giorni ago | 0

Answered

'deal' doesn't distribute the elements of a calculated array out of cellfun

deal has never done that for any kind of variable. You are calculating a single vector in the cellfun, so your code with deal()...

'deal' doesn't distribute the elements of a calculated array out of cellfun

deal has never done that for any kind of variable. You are calculating a single vector in the cellfun, so your code with deal()...

4 giorni ago | 0

| accepted

Answered

How to drop small terms in symbolic expression?

I was sure that I had posted code for this at one point, but I cannot find it. threshold = 1e-10; syms A E I R M = (sym('3.7e...

How to drop small terms in symbolic expression?

I was sure that I had posted code for this at one point, but I cannot find it. threshold = 1e-10; syms A E I R M = (sym('3.7e...

4 giorni ago | 0

Answered

Index in position 1 exceeds array bounds (must not exceed 1) -- cannot fix behavior script

When you load() and assign the output to a variable, the result is a struct with one field for each variable loaded. clickstr =...

Index in position 1 exceeds array bounds (must not exceed 1) -- cannot fix behavior script

When you load() and assign the output to a variable, the result is a struct with one field for each variable loaded. clickstr =...

4 giorni ago | 0

Answered

How do I reference a previous cell in a table?

fillmissing(YourTable, 'previous')

How do I reference a previous cell in a table?

fillmissing(YourTable, 'previous')

4 giorni ago | 0

Answered

Error: Index exceeds the number of array elements (0) on the linspace function

ftime3=linspace(Uhrzeit(1),Uhrzeit(end),height(freqbereich3)); If Uhrzeit is empty then Uhrzeit(1) would be out of ...

Error: Index exceeds the number of array elements (0) on the linspace function

ftime3=linspace(Uhrzeit(1),Uhrzeit(end),height(freqbereich3)); If Uhrzeit is empty then Uhrzeit(1) would be out of ...

4 giorni ago | 1

| accepted

Answered

Removing specific cell values from a table

I was wondering if there was any way I could just mark those empty cells as unnecessary for doing the calculation? No, you cann...

Removing specific cell values from a table

I was wondering if there was any way I could just mark those empty cells as unnecessary for doing the calculation? No, you cann...

4 giorni ago | 0

Answered

How to make weekdays axis?

ax2.XAxis.TickLabelFormat = 'eee'; %or 'eeee'

How to make weekdays axis?

ax2.XAxis.TickLabelFormat = 'eee'; %or 'eeee'

4 giorni ago | 0

| accepted

Answered

How to change axis size without affecting bin size

[Zf_S, Zf_L] = cellfun(@(B) bounds(B, 'all'), Zf); Zf_max = max(Zf_L); Zf_min = min(Zf_S); Zf_vals = linspace(Zf_min, Zf_max,...

How to change axis size without affecting bin size

[Zf_S, Zf_L] = cellfun(@(B) bounds(B, 'all'), Zf); Zf_max = max(Zf_L); Zf_min = min(Zf_S); Zf_vals = linspace(Zf_min, Zf_max,...

4 giorni ago | 0

| accepted

Answered

How to spearate the output of vl_hog() into 6*6*31 blocks and use reshape() to convert every block to a row vector?

If you have a cell array of blocks, then vector_blocks_cell = cellfun(@(B) reshape(B,1,[]), non_vector_blocks_cell, 'uniform', ...

How to spearate the output of vl_hog() into 6*6*31 blocks and use reshape() to convert every block to a row vector?

If you have a cell array of blocks, then vector_blocks_cell = cellfun(@(B) reshape(B,1,[]), non_vector_blocks_cell, 'uniform', ...

4 giorni ago | 0

Answered

How do I keep the number of bins used the same when generating a histogram along with how do I illustrate its depth with color?

You are keeping the number of bins the same for the two histograms. The bins just are not aligned between the two plots, and you...

How do I keep the number of bins used the same when generating a histogram along with how do I illustrate its depth with color?

You are keeping the number of bins the same for the two histograms. The bins just are not aligned between the two plots, and you...

4 giorni ago | 0

| accepted

Answered

Convert state-space representation (MIMO) to transfer function matrix

https://www.mathworks.com/help/matlab/ref/ss2tf.html But if you have an existing ss system created with https://www.mathworks....

Convert state-space representation (MIMO) to transfer function matrix

https://www.mathworks.com/help/matlab/ref/ss2tf.html But if you have an existing ss system created with https://www.mathworks....

4 giorni ago | 0

| accepted

Answered

computer shut down when run

You have a script that calls @myfunc1 . And then you have function main and inside that function you have function myfunc...

computer shut down when run

You have a script that calls @myfunc1 . And then you have function main and inside that function you have function myfunc...

4 giorni ago | 0

Answered

i am geting error in this line why Error: File: dfdddd.m Line: 32 Column: 89 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

t_ind1(ii) =(3 * v_th^2 * r2)./((w_sync.*s(ii).*((r_th+(r2./s(ii)).^2 + (x_th+x2)^2)); 1 0 1 0 12 ...

i am geting error in this line why Error: File: dfdddd.m Line: 32 Column: 89 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

t_ind1(ii) =(3 * v_th^2 * r2)./((w_sync.*s(ii).*((r_th+(r2./s(ii)).^2 + (x_th+x2)^2)); 1 0 1 0 12 ...

4 giorni ago | 0

| accepted

Answered

Putting specific values to a matrix

https://www.mathworks.com/help/matlab/ref/perms.html values = [1 2 3]; perms(values)

Putting specific values to a matrix

https://www.mathworks.com/help/matlab/ref/perms.html values = [1 2 3]; perms(values)

4 giorni ago | 0

Answered

please show me how to use 'line commander'

u=line(x,y,'Color','k','LineWidth',2);

please show me how to use 'line commander'

u=line(x,y,'Color','k','LineWidth',2);

5 giorni ago | 1

| accepted

Answered

Error in plotting the waves.

You initialize y1_rec and y2_rec to all zero, and you assign 0 to y1_rec(1) and y2_rec(1), but you never assign anything non-zer...

Error in plotting the waves.

You initialize y1_rec and y2_rec to all zero, and you assign 0 to y1_rec(1) and y2_rec(1), but you never assign anything non-zer...

5 giorni ago | 0

Answered

why is there an error in line 13 of my coding ?

Lfsl = 10*log((((3*10^8)./f)).^2)/((4*pi)^2).*d.^2; % finding free space loss

why is there an error in line 13 of my coding ?

Lfsl = 10*log((((3*10^8)./f)).^2)/((4*pi)^2).*d.^2; % finding free space loss

5 giorni ago | 0

Answered

Help with while loop

dt = input('Enter the desired time step: '); while dt >= h^2 / (4*alpha) fprintf('solution is unstable\nPlease enter a val...

Help with while loop

dt = input('Enter the desired time step: '); while dt >= h^2 / (4*alpha) fprintf('solution is unstable\nPlease enter a val...

5 giorni ago | 1

Answered

Query regarding finding the index which will give 90% of the total area under the curve

A = cumtrapz(x, y); x_idx = find(A >= 0.9 * A(end), 1);

Query regarding finding the index which will give 90% of the total area under the curve

A = cumtrapz(x, y); x_idx = find(A >= 0.9 * A(end), 1);

5 giorni ago | 1

| accepted