Answered
Calling a automatically generated vector valued function handle with a vector
No, there is no method at the moment other than hand manipulation. I created a service request about related issues a couple ...

4 years ago | 0

Answered
Sensor Fusion and Tracking Toolbox
In your release it is openExample('fusion/IMUandGPSFusionExample') https://www.mathworks.com/help/releases/R2019a/supportpkg/a...

4 years ago | 0

| accepted

Answered
run Mex files on a linux server
You will need to recompile the mex function code under Linux; the .mexw64 generated on your Windows system will not work under L...

4 years ago | 0

| accepted

Answered
Why do I receive an issue "Unrecognized function or variable" when run WLAN HW/SW Co-design example?
The example has not been abandoned: instead it is simply newer than your R2021b, requiring R2022a. https://www.mathworks.com/he...

4 years ago | 0

| accepted

Answered
Genetic algorithm fitness function
I can think of several different things that you might intend. If your function expects an array of trial model parameters, the...

4 years ago | 0

Answered
Nested for-Loops in parfor
parfor i=1:10 a = zeros(10, 1); for j=1:10 a(j)=1; end end

4 years ago | 1

| accepted

Answered
i'm trying to run this code but i have the following error code
<https://www.codebus.net/d-a1Nm.html>

4 years ago | 0

Answered
Why doesn't my function work?
fxy = x*(10*y+3)*exp(-x^2-y^2); fx=diff(fxy,x); fy=diff(fxy,y); A(1) = subs(fx, {x, y}, {xcord,ycord}); A(2) = subs(fy, {x,y...

4 years ago | 0

| accepted

Answered
How can I make second struct with summary from the first struct?
s_new = structfun(@(field) sum(field,1), s, 'uniform', 0); Change the sum to var or as required.

4 years ago | 0

| accepted

Answered
How to properly take fft in MATLAB plus take real and imaginary components?
Arbitrary time values means your times might not be uniform intervals. You should use nufft https://www.mathworks.com/help/ma...

4 years ago | 0

Answered
How to plot multiple graphs using different values for one of the variables?
hold on after the plot() call.

4 years ago | 0

Answered
Code that used to output values now outputs NaN without any changes
zeta has changed. Check your workspace for a variable named zeta

4 years ago | 0

Answered
when I try to plot the variable defined by syms, matlab reports errors
You are using erf(). If you use erf(5.76) or more than the result is within round-off error of 1. But you are passing in 10*rand...

4 years ago | 0

Answered
why if statement does not work
if i == 1 && i == 4 %inclined There is no value of i such that it is simultaneously true that i equals 1 *and* i equals 4....

4 years ago | 1

Answered
What does mwdocsearch.exe do and why does windows defender firewall complain about it.
mwdocsearc.exe implements searching the "doc" information. Mathworks switched the default to searching mathworks.com for the ...

4 years ago | 3

| accepted

Answered
What is KSF in matlab?
FSK means Frequency Shift Keying.

4 years ago | 0

Answered
Why do I use symsum and the result is still a symsum instead of a numerical result?( using MATLAB to obtain numerical solution using the explicit scheme)
syms m for i = 1:M1-1 for j = 2:N-1 j is an integer f=(8/(m^2*pi^2)*sin(m*pi/2)-4/(m^2*pi^2)*sin(m*pi))*...

4 years ago | 0

Answered
Complex numbers not in fundamental class?
Observe format long g t = complex(single(3), single(-5)), whos t t = complex(double(3), double(-5)), whos t t = complex(int8...

4 years ago | 1

| accepted

Answered
How to escape a portion of a string in regular expressions
https://www.mathworks.com/help/matlab/ref/regexptranslate.html regexptranslate with the 'wildcard' option, perhaps?

4 years ago | 0

| accepted

Answered
When writing data in "fwrite", can I write data in the row direction?
Is there a way to write data immediately by putting "fwrite" in the for loop and then writing it down to the line below? Yes, b...

4 years ago | 0

Answered
fix the indices of the matrix
In each case your left values are greater than your corresponding right values, so left(i):right(i) is always empty.

4 years ago | 0

Answered
why source code in ident toolbox which named @nlutilspack don't have clasedef file ?
Before classdef files, there was an earlier class mechanism that used schema.m files, and a few of those are still around.

4 years ago | 1

| accepted

Answered
How can I modify this? Error in 'Simu_Kinematics_Dynamics_Model_LV/Dynamics' while executing MATLAB S-function 'aircraft_dynamics', flag = 1 (derivatives), at time 0.0.
neddot = [cos(theta)*cos(psi),... theta and psi are scalar values so cos()*cos() is a scalar value, so the first element of...

4 years ago | 0

Answered
Questions about elements in function ode45(@(t,x) x.*(4-x), [0,5], -2:4:6)
why do we have to add t in our @function even though t is not used Imagine the opposite: imagine a system in which ode45 someho...

4 years ago | 1

Answered
Can somebody teach me how to solve this in MATLAB mobile?
The means "transpose". You would take the given numeric array and transpose it and use the \ operator. The means "inverse". C...

4 years ago | 0

Answered
When do you use 'rb' in the file access type?
You never use it. It is accepted for compatibility with C but the b is ignored.

4 years ago | 0

| accepted

Answered
Simultaneously solve over-defined system of 35 equations, with only 2 unknowns
Linear does not appear to be a good model for that system -- or at least 10, 3 is not at all suitable. Closer to 27, 1 syms C_c...

4 years ago | 1

| accepted

Answered
my conversions from octal to binary using oct2poly arent working and i dont know why?
Use base2dec followed by dec2bin

4 years ago | 0

Answered
MATLAB Nested For Loop and Plot Results
t = -10:0.1:10; 201 elements I believe. for alpha = 1:0.1:length(t) That seems odd. 1:0.1:201 would be over 2000 e...

4 years ago | 0

Answered
How to read text and strings from serial port?
data=zeros(2,100000); % Initalize array that data will be stored in data is numeric. data(1,i) = readline(s); % Read data...

4 years ago | 0

| accepted

Load more