Answered
How do i know the name of these blocks that marked below
The red one is https://www.mathworks.com/help/simulink/slref/mathfunction.html The yellow one looks to be a pitch calculation ...

3 years ago | 1

| accepted

Answered
Error using cross and not calculating correctly
CA = 'c-a' BA = 'b-a' dCA = double(CA) dBA = double(BA) cross(CA,BA) cross(dCA,dBA) From this you can see that cross('...

3 years ago | 1

Answered
how to convert matlab equation to math equation?
Do you mean like the formatted display you see here? syms mA Wo X Y S = besselj(mA,sqrt((X+0).^2+(Y+0).^2)) .* (X+0 + sign(mA...

3 years ago | 0

| accepted

Answered
How to assign a name for every result in every iteration by using for loop
Compare: T0 = 85; Delta_T = 3; n = 1; start = tic; while toc(start) < 20 eval(sprintf('T%d = T%d - Delta_T;', n, n-1)...

3 years ago | 1

Answered
How to get name of the standalone application with .exe extension while it is executing?
Using .exe implies MS Windows. You can use System.Diagonstics.Process and related facilities methods to find your current proce...

3 years ago | 0

Answered
How are the variables being changed in this recursive relationship?
out = recfib(n-1) + recfib(n-2); First MATLAB parses the line of code to ensure that it is syntactically meaningful. If, for ex...

3 years ago | 0

Answered
Solving Complex Equations Using MATLAB
Q = @(v) sym(v); Pi = Q(pi); syms D n L %density p = Q(1000); %Specific Heat Cp = Q(4182); k = Q(598)/Q(10)^3; Pr = Q(...

3 years ago | 0

Answered
Get duration of timerange
R1 = timerange('2018-01-01','2018-05-01','quarters') R1S = struct(R1); R1S.first R1S.last R1S.unitOfTime R1S.last - R1S.fir...

3 years ago | 0

| accepted

Answered
this two code are connected to each other when i run the first code it gives me error says: Error using GWO Too many output arguments.
[t_GWO(i),Nf_GWO(i),outcome_GWO(i),best_GWO(i,:),GWO_conv(i,:)]=GWO(N,T,lb,ub,dim,fitfun); % 1 2 ...

3 years ago | 0

Answered
Calculating the eigenvalues of simple shapes
M = double(strel('disk',5).Neighborhood) E = simplify(eig(sym(M))) vpa(E) (the imaginary component is due to round-off error)...

3 years ago | 0

| accepted

Answered
How to read column in excel table as a specific data type?
filename = 'appropriate file name goes here'; opts = detectImportOptions(filename); opts = setvartype(opts, COLUMNNUMBER, 'cat...

3 years ago | 1

| accepted

Answered
how can I add a table to a structure?
table2struct perhaps ?

3 years ago | 0

| accepted

Answered
Too many input arguments when reading excel sheet into matlab plot
data = readtable(file_path); That returns a table() object % x- und y-Daten extrahieren tim...

3 years ago | 0

Answered
I am using Aerospace toolbox function lambertMR but I'm unable to run this code.
That does not appear to be part of MATLAB. It looks like possibly it is inside SMAD-Main.zip available from https://download.cs...

3 years ago | 0

Answered
Saving output values into a and archive .mat file which grows with time
You might want to consider using separate variables, and using a -v7.3 .mat using the matfile facilities, which can allow you to...

3 years ago | 0

| accepted

Answered
how to create wind direction categoricals
RMET2.Deg = (0:15:360).'; dirs = discretize(RMET2.Deg, [0 45 65 80 100 260 280 360], {'other', 'airport', 'other', 'bus_sta',...

3 years ago | 0

| accepted

Answered
No appropriate method, property, or field 'LatitudeLimits' for class 'map.rasterref.MapCellsReference'.
Looking at the help for geotiffread(): R: Spatial referencing object, returned as one of the following. A geographic raster re...

3 years ago | 0

Answered
Not Enough input arguments/Unexplained line errors
Fao=100; Fbo = 0; Fco = 0; WRange=[0 100]; M0 = [Fao;Fbo;Fco]; [WSol,FSol] = ode45(@Membrane,WRange,M0); plot(WSol,FSol)...

3 years ago | 0

| accepted

Answered
it gives me error Unrecognized function or variable 'GWO'.
You need to install https://www.mathworks.com/matlabcentral/fileexchange/44974-grey-wolf-optimizer-gwo I recommend using the A...

3 years ago | 0

Answered
What is the efficient code?
If you are using fixdt() then you are likely targetting hardware. If that hardware does not have a division operator, or the di...

3 years ago | 0

Answered
plotting graph including sigma
Your total is pretty large at small times, and by comparison decays to nothing. This behaviour continues, with large oscillation...

3 years ago | 0

| accepted

Answered
Conversion of float to int16
s1 = load('data_float.mat'); data_float = s1.data_float; s2 = load('data_int16.mat'); data_int16 = s2.data_int16; A = [data_...

3 years ago | 1

Answered
Warning: Error creating or updating Surface Error in value of property XData Array is wrong shape or size
P=[7.35991,-1.0882;%C Lineal C-D 1 7.16447,-0.98211;%D Lineal C-D/Noveno grado D,E,F,I,J,K,L,M,N,O ...

3 years ago | 0

| accepted

Answered
Implement a nonlinear filter — a median filter.
padded_img = padarray(I, [(H-1)/2 (W-1)/2], 'symmetric'); Suppose the height, H, is even, such as if H = 12. Then H-1 is 11, an...

3 years ago | 0

Answered
How to create a function that will output sample std when given an array as an input?
for n=1:c M=sum(x(:,n))./b; end Every iteration of the for n loop, you are overwriting all of the array M. You should be ...

3 years ago | 0

Answered
Develop GUI using accelerometer sensor in mobile phone to collect data, filter signal, and show peaks in the signal on the mobile phone
You have the Android X Y Z sensors. You extract Z from that -- a scalar. You have the Android button sensor. You extract status ...

3 years ago | 0

Answered
Standard Error of each element in matrix
std() does not calculate "standard error". It calculates "standard deviation" which is a statistical calculation summarizing a s...

3 years ago | 0

Answered
Go on my Nationale Education license after the Easter holidays
"Your subscription to the MATLAB and Simulink Software Maintenance Service will end in 90 days". (2/12/2022) Software Mainten...

3 years ago | 0

Answered
Attempting to plot two lines on the one graph
% Constants R = [2.2]; % ohm m^-1 L = [105]*1e-9; % H m^-1 C = [69]*1e-12; % F m^-1 G = [14]*1e-9; % S m^-1 % Frequency r...

3 years ago | 0

Answered
Arrays have incompatible sizes for this operation.
while strcmpi(OptSelection,"Add") ~=1 && strcmp(OptSelection,"Delete") ~=1 That is valid code, if a bit awkward. Less awkward w...

3 years ago | 0

| accepted

Load more