Answered
Read int16 from hex file
filename = 'output2.txt'; fid = fopen(filename, 'r', 'ieee-be'); data = fread(fid, '*int16'); fclose(fid); data(1:2) dec2...

3 years ago | 0

Answered
How to find frequency of given signal?
The frequency is the reciprocal of the time needed for all of the components to first complete an integer number of cycles simul...

3 years ago | 0

Answered
I need help with this app designer code
filter2() does not support RGB images.

3 years ago | 0

Answered
Iris coloring histogram hold on
x1 = rand(1,100); x2 = rand(1,100).^2 + 0.1; x3 = exp(rand(1,100)); histogram(x1); hold on histogram(x2); histogram(x3); ...

3 years ago | 1

| accepted

Answered
this is the app designer file i have this error in the imadjust how to fix it \the file will beattached below
You appear to be missing the ] corresponding to the [ that starts your second parameter.

3 years ago | 0

Answered
Conversion to logical from symfun is not possible
There are two possibilities here: eqn1, eqn2, eqn3 do not involve any unresolved symbolic variables before the loop, so you can...

3 years ago | 0

| accepted

Answered
How can I find the value of Q1 and Q2 in an equation with two unknowns?
syms Q1 Q2 A = randi([-99 99]); B = randi([-99 99]); eqn1 = A*cos(Q1)+B*cos(Q2) == randi([1, 100]) eqn2 = A*sin(Q1)+B*sin(Q2)...

3 years ago | 1

| accepted

Answered
How to make a spatial plot
You can discretize the coordinates, and accumarray, something like dxlat = 0.1; %degree dylon = 0.25; %degree latidx = floor...

3 years ago | 0

| accepted

Answered
How Can i transform condition into constraint equation?
length(qu) starts as 1, k starts at 1, 1 < 1 is false, so the loop body is never entered. Therefore the code can be reduced to j...

3 years ago | 0

Answered
Why is matlab unable to perform this script?
P(1,:) = m.POS(:,1); P(2,:) = m.POS(:,2); replace that with P = m.POS(:,[1 2]).';

3 years ago | 0

Answered
Flexible symbolic function definition
I suggest that you look at the 'vars' option of matlabFunction

3 years ago | 0

Answered
Error for finding column index for iterative solution which uses bilinear interpolation - it works outside of being used for iterations, but not inside the iterative solver.
https://www.mathworks.com/matlabcentral/answers/1889267-wrong-output-using-find-while-filtering-a-matrix#answer_1142502 Do no...

3 years ago | 0

Answered
too many input arguments Fmincon
the parameter order is * function - objFun * x0 - parameters * A - [] * b - [] * Aeq - [] * beq - [] * lb - [] * ub - ...

3 years ago | 0

Answered
Precision of rounding numbers
D = 1/(0.1*0.00001) fprintf('%.999g\n', D) You can see that the result is not an integer. This is expected. MATLAB computes...

3 years ago | 0

Answered
How to generate code in MATLAB for randomly oriented short fibers?
while Dmin < 2*R*(1+phi) %Create a test position [xtest, ytest] to see if it overlaps xtest = rand*RVE_Len...

3 years ago | 0

| accepted

Answered
Import a picture in a workspace ,Unsupported input format for From Workspace
https://www.mathworks.com/help/simulink/ug/load-data-using-the-from-workspace-block.html The From Workspace block does not per...

3 years ago | 0

Answered
How does Matlab compute numerical jacobians?
lsqnonlin, in the case where there are no variables whose upper and lower bounds are equal, and when not configured for marquart...

3 years ago | 0

Answered
Why serial plotter is looking like this? How to resolve?
After you have created a serialport object and configured it appropriate, s = readline(PORT); values = sscanf(S, 'Rawvalue fro...

3 years ago | 0

Answered
why the histogram wont show in the wanted axes the code has no errors but it wont show
When you have no output variable for imhist() and you do not tell it which axes to display into, then it will call gca() to find...

3 years ago | 0

| accepted

Answered
Accuracy problems using mldivide on GPU
It is a known bug that should be fixed soon that affects page left and right divisions for complex numbers https://www.mathwork...

3 years ago | 1

Answered
tcpip to tcpclient adaptation
you need to configureTerminator to CRLF

3 years ago | 0

| accepted

Answered
VideoReader on .asf video file NumFrames Property is empty
Historically, VideoReader had only one property for asking about the number of frames. The original property operated by reading...

3 years ago | 0

Answered
websave() adds '.html' to file even though the file extension is specified.
It is the login page. You need to create weboptions with your username and password and pass those to websave() after the url. (...

3 years ago | 0

Answered
How can I plot the z-displacement of my floater correctly ?
You need to pass dx and dy into the function acceleration() -- or you need to pass in enough information to be able to calculate...

3 years ago | 0

Answered
Pass variables/structure to .mlapp (GUI/App designer)
App designer creates code that defines an object class the derives from handle. At least in theory, you could modify the const...

3 years ago | 0

Answered
How to get the RGB values of each point on a surface when illuminated by 'light' objects?
Unfortunately you need to use techniques such as exportgraphics or getframe ... Unless you are lucky enough to find something ...

3 years ago | 1

Answered
To calculate illuminace for four LEDs
%Total illuminace at any point is the addition of all illuminace by all %LEDs E_lux=E_lux1+E_lux2+E_lux3+E_lux4; You are tota...

3 years ago | 0

Answered
Mismatch between file and format character vector when characters are skipped
csvread() calls dlmread() dlmread() calls textscan() passing in a format specification of '' (empty character vector.) That is...

3 years ago | 0

Answered
cannot find existing number
See the discussion at https://www.mathworks.com/matlabcentral/answers/1889267-wrong-output-using-find-while-filtering-a-matrix#a...

3 years ago | 0

Answered
Optimization: Unable to perform assignment because value of type 'optim.problemdef.OptimizationExpression' is not convertible to 'double'.
https://www.mathworks.com/help/optim/ug/optimexpr.html Do not preallocate YD_1 as zeros, use optimexpr()

3 years ago | 1

Load more