Answered
generate impulsive noise with 5G waveform simulink
You can add the result of several impulse noise blocks together. (It might take extra work to ensure that the impulses do not o...

3 years ago | 0

| accepted

Answered
Invalid expression, Correlation Analysis
You appear to have copied from a source that used HTML entity encoding, You need to rewrite the operators N = length(data); Ml...

3 years ago | 1

| accepted

Answered
vpasolve with initial guess AND restrict to positive values
Unfortunately, when you use vpasolve, you can specify a range for a variable or you can specify an initial guess, but you cannot...

3 years ago | 0

Answered
Changing specific characters in filenames across subfolders
SourcePath ='D:\folder1\folder2\folder3'; dinfo = dir(fullfile(SourcePath', 'S*', 'r*.nii')); filenames = fullfile( {dinfo.fol...

3 years ago | 1

Answered
Can you explain how I will compress the audio file with lossless compression and dct
Suppose that you had a situation where when you examined the source data to be compressed, that at any point, the next bit to be...

3 years ago | 0

| accepted

Answered
How to replace NAN values in a string to a zero value
If you must use textscan() then skip most of that and use the TreatAsEmpty option; https://www.mathworks.com/help/matlab/ref/tex...

3 years ago | 1

Answered
How to can I solve a cubic equation with wide ranges of T and P?
Q = @(v) sym(v); R = Q(8314)/Q(1000); Tc = Q(3041282)/Q(10000); Pc = Q(73773)/Q(10000)*Q(1000); a = (Q(27)/Q(64))*(R^2*Tc^...

3 years ago | 0

Answered
how can i fix this code
You need to fix some portions of the code. sin(s(3))[M*g..etc] That is invalid. In MATLAB, the [] operator is used only for ...

3 years ago | 0

| accepted

Answered
How to remove zeros from double value?
D = [0.2352, 0.5263]; d = floor(D*100)/100; %version 1 fprintf('D = '); fprintf('%.2f, ', d(1:end-1)); fprintf('%.2f\n', d(...

3 years ago | 0

Answered
Convert string to bytes
filename = 'płaska_2m_#2profile.txt'; %careful, that is not an L S = readlines(filename); %first convert escaped ' and " to t...

3 years ago | 0

Answered
I need a code for sensitivity analyses and parameter optimization
Our answer is: We are not going to write your code for you. If you ask questions about which function performs a specific tas...

3 years ago | 2

Answered
How to convert decimal to binary without adding leading zeros?
A =[170;149;219;21;0;62;255] B = cellstr(dec2bin(A)); B = regexprep( B, '^0+', '', 'once') But I wonder if you are lo...

3 years ago | 0

Answered
Where trading toolbox move?
It is now Datafeed Toolbox, but see https://www.mathworks.com/matlabcentral/answers/772083-trading-toolbox-interactive-brokers

3 years ago | 0

Answered
How to show transparent part of a figure in an eps file ?
Postscript (eps) does not support transparency https://stackoverflow.com/questions/29321707/can-transparency-be-used-with-post...

3 years ago | 0

Answered
Unrecognized function or variable 'export_EMSC_modifiziert_2020'. when reading csv file
event = f_read_EMSC('export_EMSC_modifiziert_2020-02-04.csv');

3 years ago | 0

| accepted

Answered
how to solve an error using uiwait?
You could get that error under a couple of different circumstances: the helpdlg somehow gets closed before uiwait() gets contro...

3 years ago | 0

| accepted

Answered
I'm running the craps game but I want to play it until the score is 0. I can only play it once, how can I fix it?
After you_win = 0; insert while PointBalance > 0 and put an end at the bottom of the code. By the way: you are allowing ...

3 years ago | 0

Answered
The image of the duck is given as described in Figure 1. You must enter a Matlab code to get the displayed image in Figure 2 by using a convolution function.
This demonstration is deliberately not exactly the same as what you are asked to produce. im = imread('cameraman.tif'); mask...

3 years ago | 2

Answered
Hello there, I know a lot of answers exist for shading the confidence interval between two curves on a plot. However, I am unable to generate it for this data.
Your last YU value is NaN. patch() and fill() can only draw a face when all of the coordinates for the face are finite.

3 years ago | 0

| accepted

Answered
Problem with Classify Videos Using Deep Learning documentation
You have not downloaded and extracted the HMDB files. You need to download the .rar file and extract it, which will give you a d...

3 years ago | 0

Answered
showing the histogram in UIAxes_2 And not separately in the application
imhist() does not have any possibility of passing in an an axes. You will need to use the form of imhist() with outputs, and t...

3 years ago | 0

| accepted

Answered
Write a function that applies Euler's
I predict that you tried to run the code by pressing the green Run button, instead of going to the command line and invoking it ...

3 years ago | 0

| accepted

Answered
Fast alternative to assign 0 to NaNs
Asking about the fastest way to do something is almost always a mistake. Suppose that the fastest way to do this particular se...

3 years ago | 2

Answered
error with using the variable
agray has been created as a local variable in the function ImportImageButtonPushed. It is destroyed as soon as the function retu...

3 years ago | 1

Answered
Skip a single statement depending on a boolean value
piecewise is the only way to selectively execute expressions. logical times expression still executes the expression. If exec...

3 years ago | 0

Answered
Solution for transcendental equation
x0 starts as 0. When jj=1, the first increment step adds (1-1)*(1/1e4) which is 0, so x0 stays as 0. fp(0) is 0. f(0) is -0.01. ...

3 years ago | 0

Answered
Why i got this error? UI Components.
https://www.mathworks.com/matlabcentral/answers/653383-app-designer-matlab-2020b-does-not-open-mlapp-file describes the cause

3 years ago | 0

Answered
Can we distinguish between variables and parameters in a symbolic function?
https://www.mathworks.com/help/symbolic/sym.argnames.html f_variables = argnames(f) f_param = setdiff(symvar(f), f_varia...

3 years ago | 0

Answered
How to create quiver3 for ODE45
The gradient components are much smaller than the coordinates. You are using a small step size, and the function just isn't v...

3 years ago | 1

| accepted

Answered
Quarter Car Model with Haversine Bump Input, Errors using ode45
Bump is a row vector. k1 is a scalar. k1*Bump' is a column vector. So your dy is producing a column vector that is longer than y...

3 years ago | 0

| accepted

Load more