Tag Archives: matlab
Plotting the Bar chart in Matlab
Hi all,
I am plotting the bar chart in matlab with the following code,
x = [1 2 3];
figure,
bar(x,[3 2 1;6 5 4;9 8 7])
Here, I am getting the following chart when I run it, but it should be (3,6,9) should be below the 1(x-axis), (2,5,8) under the 2(x-axis), similarly (1,4,7) in 3(xaxis).
It would be great, if anyone could help.
Thanks,
Satish JHi all,
I am plotting the bar chart in matlab with the following code,
x = [1 2 3];
figure,
bar(x,[3 2 1;6 5 4;9 8 7])
Here, I am getting the following chart when I run it, but it should be (3,6,9) should be below the 1(x-axis), (2,5,8) under the 2(x-axis), similarly (1,4,7) in 3(xaxis).
It would be great, if anyone could help.
Thanks,
Satish J Hi all,
I am plotting the bar chart in matlab with the following code,
x = [1 2 3];
figure,
bar(x,[3 2 1;6 5 4;9 8 7])
Here, I am getting the following chart when I run it, but it should be (3,6,9) should be below the 1(x-axis), (2,5,8) under the 2(x-axis), similarly (1,4,7) in 3(xaxis).
It would be great, if anyone could help.
Thanks,
Satish J bar, plot, bar chart MATLAB Answers — New Questions
How to optimize matlab code about Radar Signal Process?
Hi MathWorks Team,
I received some matlab code from TI company for Radar Signal Process.
The code is too slow to use as TI didnt optimize anything about the code.
They just told me some tips to optimize the code like below.
You can use Parallel Computing Toolbox and modify the code to support parallel computation.
You can also store few intermediate results in the form of .mat file and reuse the results instead of computing it multiple times.
If there are other good ways to make better performace, please share ideas for me.
Thank you.Hi MathWorks Team,
I received some matlab code from TI company for Radar Signal Process.
The code is too slow to use as TI didnt optimize anything about the code.
They just told me some tips to optimize the code like below.
You can use Parallel Computing Toolbox and modify the code to support parallel computation.
You can also store few intermediate results in the form of .mat file and reuse the results instead of computing it multiple times.
If there are other good ways to make better performace, please share ideas for me.
Thank you. Hi MathWorks Team,
I received some matlab code from TI company for Radar Signal Process.
The code is too slow to use as TI didnt optimize anything about the code.
They just told me some tips to optimize the code like below.
You can use Parallel Computing Toolbox and modify the code to support parallel computation.
You can also store few intermediate results in the form of .mat file and reuse the results instead of computing it multiple times.
If there are other good ways to make better performace, please share ideas for me.
Thank you. signal processing MATLAB Answers — New Questions
Fixed-point conversion error of dsphdl.FFT
I am trying to convert the below given matlab scripts to VHDL, but during fixed-point conversion it is showing that dsphdl.FFT is a non-tunable property and hence it cannot be converted as it needs a constant value. Is there any way around it as i need a code whose FFTLength can be changed as per need?
function [yOut, validOut] = HDLFFT(yIn, validIn, FFTLength)
persistent fftObj;
if isempty(fftObj)
fftObj = dsphdl.FFT(‘FFTLength’, FFTLength);
end
[yOut, validOut] = fftObj(yIn, validIn);
end
the above is the main function
N = 1024;
Fs = 800000;
number_of_samples = 0:N-1;
time = (0:N-1)*Fs;
signal = cos(2*pi*200000*time);
sampled_signal = cos(2*pi*200000*number_of_samples/Fs);
signal_fixed = fi(sampled_signal,0,32,24);
signal_zeros = zeros(1, N);
validOut = false(1,N);
for loop = 1:1:3*N
if (mod(loop, N) == 0)
i = N;
else
i = mod(loop, N);
end
[signal_zeros(loop),validOut(loop)] = HDLFFT128_final((signal_fixed(i)),(loop <= N),FFTLength);
end
signal_zeros = signal_zeros(validOut == 1);
fft_reverse = bitrevorder(signal_zeros);
disp(fft_reverse);
figure(1)
stem(0:N-1,fft_reverse)
title(‘FFT’)
the above is the testbenchI am trying to convert the below given matlab scripts to VHDL, but during fixed-point conversion it is showing that dsphdl.FFT is a non-tunable property and hence it cannot be converted as it needs a constant value. Is there any way around it as i need a code whose FFTLength can be changed as per need?
function [yOut, validOut] = HDLFFT(yIn, validIn, FFTLength)
persistent fftObj;
if isempty(fftObj)
fftObj = dsphdl.FFT(‘FFTLength’, FFTLength);
end
[yOut, validOut] = fftObj(yIn, validIn);
end
the above is the main function
N = 1024;
Fs = 800000;
number_of_samples = 0:N-1;
time = (0:N-1)*Fs;
signal = cos(2*pi*200000*time);
sampled_signal = cos(2*pi*200000*number_of_samples/Fs);
signal_fixed = fi(sampled_signal,0,32,24);
signal_zeros = zeros(1, N);
validOut = false(1,N);
for loop = 1:1:3*N
if (mod(loop, N) == 0)
i = N;
else
i = mod(loop, N);
end
[signal_zeros(loop),validOut(loop)] = HDLFFT128_final((signal_fixed(i)),(loop <= N),FFTLength);
end
signal_zeros = signal_zeros(validOut == 1);
fft_reverse = bitrevorder(signal_zeros);
disp(fft_reverse);
figure(1)
stem(0:N-1,fft_reverse)
title(‘FFT’)
the above is the testbench I am trying to convert the below given matlab scripts to VHDL, but during fixed-point conversion it is showing that dsphdl.FFT is a non-tunable property and hence it cannot be converted as it needs a constant value. Is there any way around it as i need a code whose FFTLength can be changed as per need?
function [yOut, validOut] = HDLFFT(yIn, validIn, FFTLength)
persistent fftObj;
if isempty(fftObj)
fftObj = dsphdl.FFT(‘FFTLength’, FFTLength);
end
[yOut, validOut] = fftObj(yIn, validIn);
end
the above is the main function
N = 1024;
Fs = 800000;
number_of_samples = 0:N-1;
time = (0:N-1)*Fs;
signal = cos(2*pi*200000*time);
sampled_signal = cos(2*pi*200000*number_of_samples/Fs);
signal_fixed = fi(sampled_signal,0,32,24);
signal_zeros = zeros(1, N);
validOut = false(1,N);
for loop = 1:1:3*N
if (mod(loop, N) == 0)
i = N;
else
i = mod(loop, N);
end
[signal_zeros(loop),validOut(loop)] = HDLFFT128_final((signal_fixed(i)),(loop <= N),FFTLength);
end
signal_zeros = signal_zeros(validOut == 1);
fft_reverse = bitrevorder(signal_zeros);
disp(fft_reverse);
figure(1)
stem(0:N-1,fft_reverse)
title(‘FFT’)
the above is the testbench fft, dsp, error, matlab, hdl, hdlcoder, dft MATLAB Answers — New Questions
matlab read input command
I am working on NN and trying to code for 2:4:1 structure, please help me out in read input command as i am not able to give that command.
Thanks in Advance.I am working on NN and trying to code for 2:4:1 structure, please help me out in read input command as i am not able to give that command.
Thanks in Advance. I am working on NN and trying to code for 2:4:1 structure, please help me out in read input command as i am not able to give that command.
Thanks in Advance. readinput, command, matlab, nn MATLAB Answers — New Questions
Extracting cross-sectional curves from an STL file.
I have an STL file as shown in Figure a and I want to extract its cross-sectional curves as shown in Figure b. Then, I intend to generate a new STL model as shown in Figure c. How can I achieve this using Matlab?I have an STL file as shown in Figure a and I want to extract its cross-sectional curves as shown in Figure b. Then, I intend to generate a new STL model as shown in Figure c. How can I achieve this using Matlab? I have an STL file as shown in Figure a and I want to extract its cross-sectional curves as shown in Figure b. Then, I intend to generate a new STL model as shown in Figure c. How can I achieve this using Matlab? stl file processing;, cross-sectional curves, spline MATLAB Answers — New Questions
How to creat a( 2D or 3D )LookUp table (LUT) at m_file .
what is the function should i use to creat it at m file.what is the function should i use to creat it at m file. what is the function should i use to creat it at m file. lut MATLAB Answers — New Questions
double data type error
I am using double as data type for my code yet I am only getting values upto four decimal places, I am not sure whether this is correct or not.I am using double as data type for my code yet I am only getting values upto four decimal places, I am not sure whether this is correct or not. I am using double as data type for my code yet I am only getting values upto four decimal places, I am not sure whether this is correct or not. error, matlab MATLAB Answers — New Questions
How can I change the length of a line using the xline() function?
Recently, I was trying to make a graph wihich required a vertical line to be of a specific width (so it stops at a line plot, and not cut through). Coudn’t find any functions. How can I do that?
xline([1336.5 648],"r–")
(The part that I want to remove)Recently, I was trying to make a graph wihich required a vertical line to be of a specific width (so it stops at a line plot, and not cut through). Coudn’t find any functions. How can I do that?
xline([1336.5 648],"r–")
(The part that I want to remove) Recently, I was trying to make a graph wihich required a vertical line to be of a specific width (so it stops at a line plot, and not cut through). Coudn’t find any functions. How can I do that?
xline([1336.5 648],"r–")
(The part that I want to remove) line, length MATLAB Answers — New Questions
Difficulty in plotting equation in matlab
I need the MATLAB code to plot the equation V=((N.*k.*T_ambient./q).*(log(I./Iso)-(q.*Vgo/(N.*k.*T_ambient))) + Vgo+Rso.*I)./(1-(N.*k.*Rth.*I./q).*(log(I./Iso)-(q.*Vgo./(N.*k.*T_ambient))) – alphao.*Rso.*(I.^2).*Rth). V should be on x axis and I on y axis. I is to be obtained using V . Values of ther variables are :
N = 1.15;
k = 1.38e-23;
q = 1.6e-19;
Vgo = 1.174;
Rso = 0.085;
Iso = 21.6e-15;
alphao = 0.0165;
Rth = 1;
T_ambient=298;I need the MATLAB code to plot the equation V=((N.*k.*T_ambient./q).*(log(I./Iso)-(q.*Vgo/(N.*k.*T_ambient))) + Vgo+Rso.*I)./(1-(N.*k.*Rth.*I./q).*(log(I./Iso)-(q.*Vgo./(N.*k.*T_ambient))) – alphao.*Rso.*(I.^2).*Rth). V should be on x axis and I on y axis. I is to be obtained using V . Values of ther variables are :
N = 1.15;
k = 1.38e-23;
q = 1.6e-19;
Vgo = 1.174;
Rso = 0.085;
Iso = 21.6e-15;
alphao = 0.0165;
Rth = 1;
T_ambient=298; I need the MATLAB code to plot the equation V=((N.*k.*T_ambient./q).*(log(I./Iso)-(q.*Vgo/(N.*k.*T_ambient))) + Vgo+Rso.*I)./(1-(N.*k.*Rth.*I./q).*(log(I./Iso)-(q.*Vgo./(N.*k.*T_ambient))) – alphao.*Rso.*(I.^2).*Rth). V should be on x axis and I on y axis. I is to be obtained using V . Values of ther variables are :
N = 1.15;
k = 1.38e-23;
q = 1.6e-19;
Vgo = 1.174;
Rso = 0.085;
Iso = 21.6e-15;
alphao = 0.0165;
Rth = 1;
T_ambient=298; matlab, code, equation, plotting MATLAB Answers — New Questions
How to check stability using bode-plot
Hello all,
I am testing an example simulation file.
In this file, I want to know about how to make a bode plot.
please let me know.
best regards,
kyungmin kimHello all,
I am testing an example simulation file.
In this file, I want to know about how to make a bode plot.
please let me know.
best regards,
kyungmin kim Hello all,
I am testing an example simulation file.
In this file, I want to know about how to make a bode plot.
please let me know.
best regards,
kyungmin kim pmlsm MATLAB Answers — New Questions
Write a function called valid_date that takes three positive integer scalar inputs year, month, day. If these three represent a valid date, return a logical true, otherwise false. The name of the output argument is valid.
Hi Folks,
I have tried and ended up in errors. For example(valid_date(2018, 4, 1) failed,The last day of every month
Variable valid has an incorrect value. valid_date(2000, 1, 31) failed…, Random leap years
Variable valid has an incorrect value. valid_date(1624, 2, 29) failed…, Random dates
Variable valid has an incorrect value. valid_date(1433, 6, 28) failed…)
Kindly point out the errors I have made!
function valid = valid_date(year,month,day)
if (nargin==3)
if (fix(valid_date)&&isscalar(valid_date))
if((rem(year,4)==0||rem(year,400)==0) && rem(year,100)~=0)
if((month==1||3||5||7||9||11) && 0<day<32)
valid=true;
elseif(month==2 && 0<day<30)
valid=true;
elseif((month==4||6||8||10||12) && 0<day<31)
valid=true;
else
valid=false;
end
else
if((month==1||3||5||7||9||11) && 0<day<32)
valid=true;
elseif((month==4||6||8||10||12) && 0<day<31)
valid=true;
elseif(month==2 && 0<day<29)
valid=true;
else
valid=false;
end
end
else
valid=false;
end
else
valid=false;
endHi Folks,
I have tried and ended up in errors. For example(valid_date(2018, 4, 1) failed,The last day of every month
Variable valid has an incorrect value. valid_date(2000, 1, 31) failed…, Random leap years
Variable valid has an incorrect value. valid_date(1624, 2, 29) failed…, Random dates
Variable valid has an incorrect value. valid_date(1433, 6, 28) failed…)
Kindly point out the errors I have made!
function valid = valid_date(year,month,day)
if (nargin==3)
if (fix(valid_date)&&isscalar(valid_date))
if((rem(year,4)==0||rem(year,400)==0) && rem(year,100)~=0)
if((month==1||3||5||7||9||11) && 0<day<32)
valid=true;
elseif(month==2 && 0<day<30)
valid=true;
elseif((month==4||6||8||10||12) && 0<day<31)
valid=true;
else
valid=false;
end
else
if((month==1||3||5||7||9||11) && 0<day<32)
valid=true;
elseif((month==4||6||8||10||12) && 0<day<31)
valid=true;
elseif(month==2 && 0<day<29)
valid=true;
else
valid=false;
end
end
else
valid=false;
end
else
valid=false;
end Hi Folks,
I have tried and ended up in errors. For example(valid_date(2018, 4, 1) failed,The last day of every month
Variable valid has an incorrect value. valid_date(2000, 1, 31) failed…, Random leap years
Variable valid has an incorrect value. valid_date(1624, 2, 29) failed…, Random dates
Variable valid has an incorrect value. valid_date(1433, 6, 28) failed…)
Kindly point out the errors I have made!
function valid = valid_date(year,month,day)
if (nargin==3)
if (fix(valid_date)&&isscalar(valid_date))
if((rem(year,4)==0||rem(year,400)==0) && rem(year,100)~=0)
if((month==1||3||5||7||9||11) && 0<day<32)
valid=true;
elseif(month==2 && 0<day<30)
valid=true;
elseif((month==4||6||8||10||12) && 0<day<31)
valid=true;
else
valid=false;
end
else
if((month==1||3||5||7||9||11) && 0<day<32)
valid=true;
elseif((month==4||6||8||10||12) && 0<day<31)
valid=true;
elseif(month==2 && 0<day<29)
valid=true;
else
valid=false;
end
end
else
valid=false;
end
else
valid=false;
end homework, valid_date, soft-lock MATLAB Answers — New Questions
next prime number using While loops
We have to write a function called next_prime that takes a scalar positive integer input n. Use a while-loop to find and return k, the smallest prime number that is greater than n. we may use isprime function. plz help..We have to write a function called next_prime that takes a scalar positive integer input n. Use a while-loop to find and return k, the smallest prime number that is greater than n. we may use isprime function. plz help.. We have to write a function called next_prime that takes a scalar positive integer input n. Use a while-loop to find and return k, the smallest prime number that is greater than n. we may use isprime function. plz help.. while loop, prime number, eratosthenes, soft-lock MATLAB Answers — New Questions
Write a function called eligible that helps the admission officer of the Graduate School decide whether the applicant is eligible for admission based on GRE scores. The function takes two positive scalars called v and q as in
function admit=eligible(v,q);
if v>=92 && q>=88;
fprintf(‘true’)
else
fprintf(‘false’)
endfunction admit=eligible(v,q);
if v>=92 && q>=88;
fprintf(‘true’)
else
fprintf(‘false’)
end function admit=eligible(v,q);
if v>=92 && q>=88;
fprintf(‘true’)
else
fprintf(‘false’)
end if statement, homework, soft-lock, no more answers please! MATLAB Answers — New Questions
Write a function called under_age that takes two positive integer scalar arguments: age that represents someone’s age, and limit that represents an age limit. The function returns true if the person is younger than the age limit. If the second arg
function too_young = under_age(age,limit)
limit = 21
if age <= limit
too_young = true;
elseif age >= limit
too_young = false;
else
fprintf(‘invalidn’)
endfunction too_young = under_age(age,limit)
limit = 21
if age <= limit
too_young = true;
elseif age >= limit
too_young = false;
else
fprintf(‘invalidn’)
end function too_young = under_age(age,limit)
limit = 21
if age <= limit
too_young = true;
elseif age >= limit
too_young = false;
else
fprintf(‘invalidn’)
end homework, age, soft-lock, please no more answers MATLAB Answers — New Questions
Explanation of the matlab code
Hi I foun this ‘extract’ of a matlab code on the internet. Can someone explain to me line by line whats happening? Im REALLY in need of help.
***
% ————- % This is code to make the edge detecting filter % —-%
function filter=gaussfilt(N)
% calculate alpha so the filter fills all N points
alpha=N;
first=-(1-N/2)*exp(-(1-N/2)^2/alpha);
count=0;
while first<.1*(-(1530/4000*N-N/2)*exp(-(1530/4000*N-N/2)^2/alpha))
count=count+1;
alpha=N*500*count;
first=-(1-N/2)*exp(-(1-N/2)^2/alpha);
end
for n=1:N
filter(n)=-(n-N/2)*exp(-(n-N/2)^2/alpha); % d/dt of a gaussian
end
filter=filter/sum(abs(filter)); % normalization
returnHi I foun this ‘extract’ of a matlab code on the internet. Can someone explain to me line by line whats happening? Im REALLY in need of help.
***
% ————- % This is code to make the edge detecting filter % —-%
function filter=gaussfilt(N)
% calculate alpha so the filter fills all N points
alpha=N;
first=-(1-N/2)*exp(-(1-N/2)^2/alpha);
count=0;
while first<.1*(-(1530/4000*N-N/2)*exp(-(1530/4000*N-N/2)^2/alpha))
count=count+1;
alpha=N*500*count;
first=-(1-N/2)*exp(-(1-N/2)^2/alpha);
end
for n=1:N
filter(n)=-(n-N/2)*exp(-(n-N/2)^2/alpha); % d/dt of a gaussian
end
filter=filter/sum(abs(filter)); % normalization
return Hi I foun this ‘extract’ of a matlab code on the internet. Can someone explain to me line by line whats happening? Im REALLY in need of help.
***
% ————- % This is code to make the edge detecting filter % —-%
function filter=gaussfilt(N)
% calculate alpha so the filter fills all N points
alpha=N;
first=-(1-N/2)*exp(-(1-N/2)^2/alpha);
count=0;
while first<.1*(-(1530/4000*N-N/2)*exp(-(1530/4000*N-N/2)^2/alpha))
count=count+1;
alpha=N*500*count;
first=-(1-N/2)*exp(-(1-N/2)^2/alpha);
end
for n=1:N
filter(n)=-(n-N/2)*exp(-(n-N/2)^2/alpha); % d/dt of a gaussian
end
filter=filter/sum(abs(filter)); % normalization
return filter, soft-lock MATLAB Answers — New Questions
Simulink turn off data logging
Hello ! I do have the following problem: I have a very big simuling model, with a lot of subsystems. In this model a lot of signal have already logged. I’m making a test environment to run this model, and I have to test the result of the simulation. I have to log only a few data, but in the model there are approximately 150 logged signal (and it’s made the simulation much slower). So for that, in my test environment I’d like to unlog all of the signal, and turn on only witch are necessary for me.Hello ! I do have the following problem: I have a very big simuling model, with a lot of subsystems. In this model a lot of signal have already logged. I’m making a test environment to run this model, and I have to test the result of the simulation. I have to log only a few data, but in the model there are approximately 150 logged signal (and it’s made the simulation much slower). So for that, in my test environment I’d like to unlog all of the signal, and turn on only witch are necessary for me. Hello ! I do have the following problem: I have a very big simuling model, with a lot of subsystems. In this model a lot of signal have already logged. I’m making a test environment to run this model, and I have to test the result of the simulation. I have to log only a few data, but in the model there are approximately 150 logged signal (and it’s made the simulation much slower). So for that, in my test environment I’d like to unlog all of the signal, and turn on only witch are necessary for me. simulink, data logging MATLAB Answers — New Questions
How to package a MATLAB web program
I am currently working on a software package that is packaged and distributed as a web program and deployed to the server. My software needs to contain a folder with some pdf files in it, and in the code I use something like ".path" to access the current folder path.
I have 3 questions:
1. If you publish to the web program for others to use, when someone else accesses the server to use the program, the statement ".path" will access someone else’s computer or the server, if it is someone else’s computer, how to implement my software to call the pdf file.
2. My requirement is to implement the fact that when others use it, you can download pdf files or other files (png files), how to achieve this.
3. When others use it, the address of the save,load,imread,imewrite function access is my server or someone else’s computer, if it is someone else’s computer, go back to the first question, how to preload the file when the software is opened.I am currently working on a software package that is packaged and distributed as a web program and deployed to the server. My software needs to contain a folder with some pdf files in it, and in the code I use something like ".path" to access the current folder path.
I have 3 questions:
1. If you publish to the web program for others to use, when someone else accesses the server to use the program, the statement ".path" will access someone else’s computer or the server, if it is someone else’s computer, how to implement my software to call the pdf file.
2. My requirement is to implement the fact that when others use it, you can download pdf files or other files (png files), how to achieve this.
3. When others use it, the address of the save,load,imread,imewrite function access is my server or someone else’s computer, if it is someone else’s computer, go back to the first question, how to preload the file when the software is opened. I am currently working on a software package that is packaged and distributed as a web program and deployed to the server. My software needs to contain a folder with some pdf files in it, and in the code I use something like ".path" to access the current folder path.
I have 3 questions:
1. If you publish to the web program for others to use, when someone else accesses the server to use the program, the statement ".path" will access someone else’s computer or the server, if it is someone else’s computer, how to implement my software to call the pdf file.
2. My requirement is to implement the fact that when others use it, you can download pdf files or other files (png files), how to achieve this.
3. When others use it, the address of the save,load,imread,imewrite function access is my server or someone else’s computer, if it is someone else’s computer, go back to the first question, how to preload the file when the software is opened. web, load, appdesigner MATLAB Answers — New Questions
getting name of the txsite that offers best SINR (or signal strength)
Hi All,
I am trying to put RF propagation functionality in the Antenna Toolbox to good use.
I have a scenario where there are multiple transmitters and I produce the SINR plot in a region of interest using sinr() function. My question is whether there is a way to programmatically find out the txsite that offered the best signal strength (and hence the best SINR) at a given point in the region of interest?
Thanks in advanceHi All,
I am trying to put RF propagation functionality in the Antenna Toolbox to good use.
I have a scenario where there are multiple transmitters and I produce the SINR plot in a region of interest using sinr() function. My question is whether there is a way to programmatically find out the txsite that offered the best signal strength (and hence the best SINR) at a given point in the region of interest?
Thanks in advance Hi All,
I am trying to put RF propagation functionality in the Antenna Toolbox to good use.
I have a scenario where there are multiple transmitters and I produce the SINR plot in a region of interest using sinr() function. My question is whether there is a way to programmatically find out the txsite that offered the best signal strength (and hence the best SINR) at a given point in the region of interest?
Thanks in advance rf propagation, txsite, sinr, rxsite MATLAB Answers — New Questions
How to call a DLL sub-function in Simulink EML suitable for use in accelerated models & generated code
I think the Summary says it all.
But please note that other sub-functions of the same DLL will be called by other EML instances in the same model (as the DLL is intended to be used as a shared/common dataset to overcome Simulink problems with passing large datasets over model reference boundaries and accelerated code generation failures).
Also I have, working perfectly well, developed mex and s-function (and tlc files) suitable for calling the DLL’s sub-functions outside of the EML. However, the model will flow better if I can do it from EML too.
And yes I know for accelerated use I can use "coder.extrinsic", but I believe that this does not work for generated code (unless you tell me I’m wrong)I think the Summary says it all.
But please note that other sub-functions of the same DLL will be called by other EML instances in the same model (as the DLL is intended to be used as a shared/common dataset to overcome Simulink problems with passing large datasets over model reference boundaries and accelerated code generation failures).
Also I have, working perfectly well, developed mex and s-function (and tlc files) suitable for calling the DLL’s sub-functions outside of the EML. However, the model will flow better if I can do it from EML too.
And yes I know for accelerated use I can use "coder.extrinsic", but I believe that this does not work for generated code (unless you tell me I’m wrong) I think the Summary says it all.
But please note that other sub-functions of the same DLL will be called by other EML instances in the same model (as the DLL is intended to be used as a shared/common dataset to overcome Simulink problems with passing large datasets over model reference boundaries and accelerated code generation failures).
Also I have, working perfectly well, developed mex and s-function (and tlc files) suitable for calling the DLL’s sub-functions outside of the EML. However, the model will flow better if I can do it from EML too.
And yes I know for accelerated use I can use "coder.extrinsic", but I believe that this does not work for generated code (unless you tell me I’m wrong) simulink, matlab function MATLAB Answers — New Questions
How to disable beep on backspace. Beep off does not work.
I loaded Matlab 2023a this morning, and discovered that it had started beeping in a variety of ways, all of which are incredibly annoying. This never used to happen, so imagine my surprise when I search the problem and discover that people have been complaining about this very issue since at least 2012. I don’t know why this has suddenly become a problem, but it is infuriating. I know it sounds like a minor issue, but it has hamstrung my productivity entirely.
The command beep off does not do what it says on the label, leaving the annoying beeps on. If there is any solution that I may have overlooked in my search, I would be most appreciative.
Disabling the system sound in question has had no effect. Matlab ignores my system preferences and plays the sound anyway.
Hacky workaround: I deleted the system bell sound and rebooted, which caused Matlab to go looking for another sound. It defaulted to the freedesktop theme, which I do not use, so from there, I replaced the bell sound with silence. Without completely rebooting, it was still using the same system sound, so it’s storing a copy of it somewhere. If anyone knows where that is, or what exactly it is doing, maybe that’s a pathway to a better solution?I loaded Matlab 2023a this morning, and discovered that it had started beeping in a variety of ways, all of which are incredibly annoying. This never used to happen, so imagine my surprise when I search the problem and discover that people have been complaining about this very issue since at least 2012. I don’t know why this has suddenly become a problem, but it is infuriating. I know it sounds like a minor issue, but it has hamstrung my productivity entirely.
The command beep off does not do what it says on the label, leaving the annoying beeps on. If there is any solution that I may have overlooked in my search, I would be most appreciative.
Disabling the system sound in question has had no effect. Matlab ignores my system preferences and plays the sound anyway.
Hacky workaround: I deleted the system bell sound and rebooted, which caused Matlab to go looking for another sound. It defaulted to the freedesktop theme, which I do not use, so from there, I replaced the bell sound with silence. Without completely rebooting, it was still using the same system sound, so it’s storing a copy of it somewhere. If anyone knows where that is, or what exactly it is doing, maybe that’s a pathway to a better solution? I loaded Matlab 2023a this morning, and discovered that it had started beeping in a variety of ways, all of which are incredibly annoying. This never used to happen, so imagine my surprise when I search the problem and discover that people have been complaining about this very issue since at least 2012. I don’t know why this has suddenly become a problem, but it is infuriating. I know it sounds like a minor issue, but it has hamstrung my productivity entirely.
The command beep off does not do what it says on the label, leaving the annoying beeps on. If there is any solution that I may have overlooked in my search, I would be most appreciative.
Disabling the system sound in question has had no effect. Matlab ignores my system preferences and plays the sound anyway.
Hacky workaround: I deleted the system bell sound and rebooted, which caused Matlab to go looking for another sound. It defaulted to the freedesktop theme, which I do not use, so from there, I replaced the bell sound with silence. Without completely rebooting, it was still using the same system sound, so it’s storing a copy of it somewhere. If anyone knows where that is, or what exactly it is doing, maybe that’s a pathway to a better solution? beep MATLAB Answers — New Questions