Answered
Remove noises from images
My prediction looking at that example, is that the answer is NO, that there is no automatic way to extract that region without e...

3 years ago | 0

Answered
Keeps saying 'params" is undefined while using Chronux toolbox (electrophysiology toolbox) and I'm not sure why
If you pass in params at all, then it must be a struct with particular fields that are described in more detail on page 30 of ht...

3 years ago | 0

Answered
How can I change phase image to gray code?
name = 'trial1.jpg'; im = imread(name); if ndims(im) > 2; im = im(:,:,2); end im= im2double(im); imbin = double(imbinarize(i...

3 years ago | 0

Answered
How do I table a variable with multiple values?
x= -10:1:10 T1 = table(x.', 'VariableNames', {'x'}) %or x = x(:); T2 = table(x)

3 years ago | 0

| accepted

Answered
Solve closed loop system equation with disturbance input via function handle
In the case where the disturbances are considered instantaneous in duration, or instantaneous in starting up, then the answer is...

3 years ago | 1

| accepted

Answered
iterating a function within itself
Suppose you have the task of moving one brick at a time to the left until you reach the edge, and you start at brick #4. Then co...

3 years ago | 0

Answered
decimal in wrong position when dividing a 1x10 column by single variable.
format long g F = [0;1650;3400;5200;6850;7750;8150;8500;8750;9000]; A = (0.4/2)^2 * pi(); sigma = F/A The answers were not w...

3 years ago | 0

Answered
E- Plane Radiation Pattern Plot
Once you start into name/value pairs, each name must have exactly one value parameter after it, and you cannot have any non-name...

3 years ago | 0

| accepted

Answered
fmincon constraint function not continous
My understanding is that the function should be continous over (-/infinite to +/infinite), not over the low bound and up bound t...

3 years ago | 0

Answered
end command doen't end my function
Remove the lines clc clear close all They are not doing any good there, only causing problems. The only time you should eve...

3 years ago | 0

| accepted

Answered
using a while loop statement, individually display the apples element in the "fruits" array.
N2014671 = 0; while N2014671 < numel(fruits) N2014671 = N2014671 + 1; T2014671 = fruits(N2014671); if F2014671(T...

3 years ago | 1

Answered
FFT with window and overlap and Fs
Any time you talk about windows and overlap, you are no longer talking about FFT. FFT is a particular class of methods of implem...

3 years ago | 0

Answered
Will Matlab R2021a run on macOS Ventura?
The "13.4.1" output line shows that I am running this on MacOS 13.4.1, which is the latest version of Ventura. You can see from...

3 years ago | 1

| accepted

Answered
More multiplication operations require less time
It is because you are not recording the output. I introduced T0 here because I was noticing that in my tests, T1 (the first ope...

3 years ago | 1

| accepted

Answered
How to invert .p file to .m file
There is no documented way to convert p files to m files, and Mathworks will not assist you in converting files. There have b...

3 years ago | 1

Answered
Index in position 1 exceeds array bounds (must not exceed 1) AT d_theta_plus = (theta(j+1, n) - theta(j, n)) / delta_z;
You initialize theta as a scalar. You have for j=1 to something. You access theta(j+1,something) but when j is 1 that is theta(2...

3 years ago | 0

Answered
Do built-in classes have hidden properties storing "dimension information," and how can I find these hidden properties?
It is not stored as a named property; it is stored in the fundamental descriptor along with the information such as whether the ...

3 years ago | 0

Answered
parallel computing fitness function inside parallel optimization
Inside a parallel worker you can vectorize, but not run anything in parallel. You would need to run multiple matlab sessions,...

3 years ago | 1

| accepted

Answered
How do I plot data points with x-axis tick labels that are strings?
The easiest way to specify the tick labels as strings is to use the xticklabels function. For example, plot five points. Change ...

3 years ago | 4

| accepted

Answered
where is CANExplorerDatabase.dbc file the said it is provided?
After you execute the command given there, and it has brought up the LiveScript of the example, then the file is at Examples/R2...

3 years ago | 0

Answered
Error message: i dont have a valid license file
Please contact Mathworks for free installation and licensing support. The volunteers who answer questions here do not have any ...

3 years ago | 0

Answered
DIFFICULTY LOCATING SIMSCAPE BLOCK
Are you using pure Simulink, or are you using Simscape Power Systems? https://www.mathworks.com/help/sps/powersys/ref/acvoltag...

3 years ago | 1

Answered
Low precision of floats?
It is documented that int64() and uint64() calls with a single literal numeric parameter are "syntax" that lead to the values be...

3 years ago | 3

| accepted

Answered
Finding the first 1 in a binary set using optimization
Imagine that you had a case where location P is set, that all positive integer multiples of P were also set. Then suppose you ex...

3 years ago | 0

| accepted

Answered
Comparison 4 numbers without using if action in simulink
Use a MATLAB Function Block and call max and examine the second output.

3 years ago | 0

Answered
How can I draw this circuit in MATLAB and get the output of this waveform?
This is easier if you use the Sim Powersystems add-on product: You would use an AC Voltage Source such as https://www.mathworks...

3 years ago | 0

Answered
Some questions about using Least squares for scatter fitting
The original data includes a minimum of two narrow gaussians with high phases. There is no way you are going to be able to fit t...

3 years ago | 0

Answered
Is there a way to have C1 continuous curve fit?
syms m x b syms xi syms c_3 c_2 c_1 c_0 L(x) = m*x+b P(x) = c_3*x^3 + c_2*x^2 + c_1 * x + c_0 tangent_Li = subs(diff(L,x), ...

3 years ago | 0

Answered
The given below i put 100%efforts but do not solve.so please help me. I prepocessed the three signals and added the nm2cm but do not pass the test cases.
You do not have a signal named harp_cm so it is not possible that you have plotted harp_cm

3 years ago | 1

Answered
error using xcorr function to compare audio file that is recorded by device microphone
Your y1 is stero but needs to be mono

3 years ago | 0

| accepted

Load more