Answered
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...

1 month ago | 0

Answered
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...

1 month ago | 1

| accepted

Answered
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...

1 month ago | 0

| accepted

Answered
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...

1 month ago | 0

Answered
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...

1 month ago | 0

Answered
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() ...

1 month ago | 0

| accepted

Answered
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...

1 month ago | 0

| accepted

Answered
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)))...

1 month ago | 0

| accepted

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

1 month ago | 0

Answered
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...

1 month ago | 1

| accepted

Answered
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...

1 month ago | 0

Answered
Splitting columns of a table
files = dir('mvn_lpw_l2_lpnt_20150301_v03_r02.csv'); tab = readtable(files.name, 'Delimiter', ',', 'VariableNamingRule', 'pres...

1 month ago | 0

| accepted

Answered
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...

1 month ago | 0

| accepted

Answered
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...

1 month ago | 0

Answered
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,...

1 month ago | 0

| accepted

Answered
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 ...

1 month ago | 0

Answered
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...

1 month ago | 1

Answered
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...

1 month ago | 1

Answered
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...

1 month ago | 0

Answered
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...

1 month ago | 2

| accepted

Answered
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.)

1 month ago | 1

Answered
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...

1 month ago | 0

Answered
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...

1 month ago | 0

Answered
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...

1 month ago | 0

Answered
How to vectorize this nested for loop?
ind = sub2ind(size(image), yd, xd, 1); imageCylindrical(:,:,1) = image(ind + 0 * ydim*xdim); imageCylindrical(:,:,2) = image...

1 month ago | 0

| accepted

Answered
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...

1 month ago | 0

Answered
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...

1 month ago | 0

Answered
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...

1 month ago | 1

Answered
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...

1 month ago | 1

| accepted

Answered
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 ...

2 months ago | 0

| accepted

Load more