Risposto

How do I implement a one-second buffer for incoming UDP data?

For real-time operations, you cannot (should not) use dynamic memory allocation. Dynamic memory allocation runs the risk of run...

How do I implement a one-second buffer for incoming UDP data?

For real-time operations, you cannot (should not) use dynamic memory allocation. Dynamic memory allocation runs the risk of run...

circa un mese fa | 0

Risposto

retrieve mat-file version for v7.0

The difference between -v5 and -v7 has to do with the variety of objects that are stored. If a particular .mat file does not hap...

retrieve mat-file version for v7.0

The difference between -v5 and -v7 has to do with the variety of objects that are stored. If a particular .mat file does not hap...

circa un mese fa | 1

| accettato

Risposto

How to Increase plotting speed

tic L=0.1; a=L/2; v=3e8; f1=1.2e9; f2=4.8e9; f3=10e9; w1=(2*pi*f1); w2=(2*pi*f2); w3=(2*pi*f3); Z01=50; Z02=50; a0...

How to Increase plotting speed

tic L=0.1; a=L/2; v=3e8; f1=1.2e9; f2=4.8e9; f3=10e9; w1=(2*pi*f1); w2=(2*pi*f2); w3=(2*pi*f3); Z01=50; Z02=50; a0...

circa un mese fa | 0

| accettato

Risposto

How to bring in a single channel EEG signal from MATLAB workspace into Simulink?

t = (0:length(YOUR_EEG_SIGNAL)-1) / fs .'; SIGNAL = [t, YOUR_EEG_SIGNAL(:)]; assignin('base', 'SIGNAL', SIGNAL); Now From Wor...

How to bring in a single channel EEG signal from MATLAB workspace into Simulink?

t = (0:length(YOUR_EEG_SIGNAL)-1) / fs .'; SIGNAL = [t, YOUR_EEG_SIGNAL(:)]; assignin('base', 'SIGNAL', SIGNAL); Now From Wor...

circa un mese fa | 0

Risposto

liscence manager error 8

You will not be able to fix the error instantly. https://www.mathworks.com/matlabcentral/answers/100496-why-do-i-receive-licens...

liscence manager error 8

You will not be able to fix the error instantly. https://www.mathworks.com/matlabcentral/answers/100496-why-do-i-receive-licens...

circa un mese fa | 0

Risposto

Cross-section (Need help to correct the code or modify it )

atand() with one parameter returns values in the range -90 to +90, not in the range 0 to 90 to 180. No single-parameter atand() ...

Cross-section (Need help to correct the code or modify it )

atand() with one parameter returns values in the range -90 to +90, not in the range 0 to 90 to 180. No single-parameter atand() ...

circa un mese fa | 0

| accettato

Risposto

Issues with script writing mixed text/numeric data to file as a table

fprintf(fid, '%5.1f %4.1f %4.1f', [CENTIMETERS, KILOGRAMS, BMI] .') fprintf() works by first using up all of th...

Issues with script writing mixed text/numeric data to file as a table

fprintf(fid, '%5.1f %4.1f %4.1f', [CENTIMETERS, KILOGRAMS, BMI] .') fprintf() works by first using up all of th...

circa un mese fa | 0

| accettato

Risposto

User-defined monthly loan payment function issues

M=P*((r/1200)/(1-(1+(r/1200)))^((-12)*N)) 12 1 2 3 4 321 23 2 10 That has a sub-expression (1-(1+(r/1200)))...

User-defined monthly loan payment function issues

M=P*((r/1200)/(1-(1+(r/1200)))^((-12)*N)) 12 1 2 3 4 321 23 2 10 That has a sub-expression (1-(1+(r/1200)))...

circa un mese fa | 0

| accettato

Risposto

Parallel computing on cell array.

Use a cell array. Inside the parfor: p1 = pArray{i}; x = p1.positionx; y = p1.positiony; and so on

Parallel computing on cell array.

Use a cell array. Inside the parfor: p1 = pArray{i}; x = p1.positionx; y = p1.positiony; and so on

circa un mese fa | 0

Risposto

Why is my code seemingly ignoring some of the for loop commands?

function b=mybin2dec(x) You do not assign anything to b . Your code will error unless you do not assign the result of mybin2dec...

Why is my code seemingly ignoring some of the for loop commands?

function b=mybin2dec(x) You do not assign anything to b . Your code will error unless you do not assign the result of mybin2dec...

circa un mese fa | 1

| accettato

Risposto

How do I plot a quiver plot without the tail?

quiver(___,LineSpec) sets the line style, marker, and color. Markers appear at the points specified by X and Y. If you specify a...

How do I plot a quiver plot without the tail?

quiver(___,LineSpec) sets the line style, marker, and color. Markers appear at the points specified by X and Y. If you specify a...

circa un mese fa | 0

Risposto

Splitting columns of a table

files = dir('mvn_lpw_l2_lpnt_20150301_v03_r02.csv'); tab = readtable(files.name, 'Delimiter', ',', 'VariableNamingRule', 'pres...

Splitting columns of a table

files = dir('mvn_lpw_l2_lpnt_20150301_v03_r02.csv'); tab = readtable(files.name, 'Delimiter', ',', 'VariableNamingRule', 'pres...

circa un mese fa | 0

| accettato

Risposto

how to crop image automatically to 512x512px?

RegionSize = 512; I=imread('1_245.jpg'); figure, imshow(I); I=rgb2gray(I); BW=I>100; figure,imshow(BW); labeledImage = b...

how to crop image automatically to 512x512px?

RegionSize = 512; I=imread('1_245.jpg'); figure, imshow(I); I=rgb2gray(I); BW=I>100; figure,imshow(BW); labeledImage = b...

circa un mese fa | 0

| accettato

Risposto

Use Retime of a timetable to interpolate to timestamps of another timetable, without interpolating across NaNs

Specify a function handle for the retime aggregation method. "All the listed methods omit NaNs, NaTs, and other missing data i...

Use Retime of a timetable to interpolate to timestamps of another timetable, without interpolating across NaNs

Specify a function handle for the retime aggregation method. "All the listed methods omit NaNs, NaTs, and other missing data i...

circa un mese fa | 0

Risposto

error using saveas in fig format

Notice the error is shown as being on line 14 of savefig Line 14 of the Mathworks supplied savefig gor R2022b is % savefig(H,...

error using saveas in fig format

Notice the error is shown as being on line 14 of savefig Line 14 of the Mathworks supplied savefig gor R2022b is % savefig(H,...

circa un mese fa | 0

| accettato

Risposto

The "union" function for polyshapes performs an incorrect consolidation of adjacent polyshapes when presented as a vector

polyshapes contains oriented polygons. A polyshape with its vertices backwards is considered to be reverse direction. This is ...

The "union" function for polyshapes performs an incorrect consolidation of adjacent polyshapes when presented as a vector

polyshapes contains oriented polygons. A polyshape with its vertices backwards is considered to be reverse direction. This is ...

circa un mese fa | 0

Risposto

Input folders or files contain non-standard file extensions.

TrainingSet/English contains no files with standard audio file extensions. You need to change ads = audioDatastore...

Input folders or files contain non-standard file extensions.

TrainingSet/English contains no files with standard audio file extensions. You need to change ads = audioDatastore...

circa un mese fa | 1

Risposto

How to choose one between two constraint conditions

prob.Constraints.con1=x<=10 or prob.Constraints.con1=x^2<=10 You have a lower bound of 0 on x. Under the conditions, x^2<=10 is...

How to choose one between two constraint conditions

prob.Constraints.con1=x<=10 or prob.Constraints.con1=x^2<=10 You have a lower bound of 0 on x. Under the conditions, x^2<=10 is...

circa un mese fa | 1

Risposto

Anyone know how to create/ declare arrays, structer in simulink?

You can use MATLAB Function Blocks. Or for structs, you can construct Simulink Bus objects; https://www.mathworks.com/help/simu...

Anyone know how to create/ declare arrays, structer in simulink?

You can use MATLAB Function Blocks. Or for structs, you can construct Simulink Bus objects; https://www.mathworks.com/help/simu...

circa un mese fa | 0

Risposto

How to simplify one expression without Negative(-) mark

MATLAB Symbolic Toolbox automatically re-arranges expressions into "canonical form" in order to make it simpler to share parts o...

How to simplify one expression without Negative(-) mark

MATLAB Symbolic Toolbox automatically re-arranges expressions into "canonical form" in order to make it simpler to share parts o...

circa un mese fa | 2

| accettato

Risposto

Generate code for Mac using MATLAB Coder running on Windows?

That is not a supported toolchain (I don't know if it would be possible to get it to work.)

Generate code for Mac using MATLAB Coder running on Windows?

That is not a supported toolchain (I don't know if it would be possible to get it to work.)

circa un mese fa | 1

Risposto

Indexing through arrray in simulink with a for iterator

The output of From Workspace is a sampled signal, sampled at the current time. The output of From Workspace is *not* an array (u...

Indexing through arrray in simulink with a for iterator

The output of From Workspace is a sampled signal, sampled at the current time. The output of From Workspace is *not* an array (u...

circa un mese fa | 0

Risposto

Check input is a string or Char if so reprompt

a = input("Please enter a number: "); %Takes user input for number that is to be converted while ~isnumeric(a) || numel(a) ~= 1...

Check input is a string or Char if so reprompt

a = input("Please enter a number: "); %Takes user input for number that is to be converted while ~isnumeric(a) || numel(a) ~= 1...

circa un mese fa | 0

Risposto

Error when using if-else statement in MATLAB function block. How can I fix this error described below?

m = (k_f*(0.5*(((g*beta*q_w*x^4)/(nu_novec*alpha_novec*k_m))*(((d_pore^2)*psi^3/(180*(1-psi^2)))/x^2))^(0.4)))/(x); 1 2...

Error when using if-else statement in MATLAB function block. How can I fix this error described below?

m = (k_f*(0.5*(((g*beta*q_w*x^4)/(nu_novec*alpha_novec*k_m))*(((d_pore^2)*psi^3/(180*(1-psi^2)))/x^2))^(0.4)))/(x); 1 2...

circa un mese fa | 0

Risposto

How to vectorize this nested for loop?

ind = sub2ind(size(image), yd, xd, 1); imageCylindrical(:,:,1) = image(ind + 0 * ydim*xdim); imageCylindrical(:,:,2) = image...

How to vectorize this nested for loop?

ind = sub2ind(size(image), yd, xd, 1); imageCylindrical(:,:,1) = image(ind + 0 * ydim*xdim); imageCylindrical(:,:,2) = image...

circa un mese fa | 0

| accettato

Risposto

cell2table not working!

The first 18 results of spdfcdfread() are 21600 x 1 (of various numeric data types) Then you have a 21600x3 followed by two 216...

cell2table not working!

The first 18 results of spdfcdfread() are 21600 x 1 (of various numeric data types) Then you have a 21600x3 followed by two 216...

circa un mese fa | 0

Risposto

I am getting "Unable to resolve the name 'CNN.parse'" error. when I am trying to produce results of CAV_2020 Image star. I installed computer vision and deep learning tool box

MATLAB does not have any function or package named CNN . It appears that you are expecting CNN to be loaded as part of Small_Co...

I am getting "Unable to resolve the name 'CNN.parse'" error. when I am trying to produce results of CAV_2020 Image star. I installed computer vision and deep learning tool box

MATLAB does not have any function or package named CNN . It appears that you are expecting CNN to be loaded as part of Small_Co...

circa un mese fa | 0

Risposto

Vector with symbolic variable

Your time vector contains at least one value that has a fraction or is not a positive value. For example, your time vector migh...

Vector with symbolic variable

Your time vector contains at least one value that has a fraction or is not a positive value. For example, your time vector migh...

circa un mese fa | 1

Risposto

Line in Matlab plot do not appear

Your exp() results in extremely small values, so you are getting NaN Q = @(v) sym(v); Nv = Q(1e23); %guess to run the pro...

Line in Matlab plot do not appear

Your exp() results in extremely small values, so you are getting NaN Q = @(v) sym(v); Nv = Q(1e23); %guess to run the pro...

circa un mese fa | 1

| accettato

Risposto

How can I solve the error of too many input arguments in fuzzy logic toolbox?

Currently, in MATLAB, the command fuzzy invokes a fuzzy logic designer. The actual code on page 397 does not invoke fuzzy: the ...

How can I solve the error of too many input arguments in fuzzy logic toolbox?

Currently, in MATLAB, the command fuzzy invokes a fuzzy logic designer. The actual code on page 397 does not invoke fuzzy: the ...

circa un mese fa | 0

| accettato