Tag matlab

Matlab News Blog From https://blogs.mathworks.com/

propagateOrbit function fails on Epoch field format

I am feeding the same tleStruct data to the propagateOrbit function twice, but in one case propagageOrbit is successful, and in the other case it fails with the following error message: Error using propagateOrbit An error was encountered when propagating…

Copilot Chat History Saving

Hello, I have long conversations with Copilot in MATLAB and would like to keep a record of them. I know it’s possible to save the chat history as a text file, but I lose all the formatting in the process.…

Save output of parsim to file

I would like the output of parsim to be saved to a file rather than to the workspace, as my simulation output is quite large and I need to run many iterations, all of which will occupy inordinate amounts of…

How can I tri sectorized an antenna?

Hi, I need to make a radio planning tool in MATLAB. In other words, I need to put antennas, see them coverage, etc. How can I tri sectorized the antenna? I am using the version R2016a.Hi, I need to make…

fitting is not working

%% Luz-Meiboom fit of R2 vs pH clear; clc; close all; %% Data pH = [1.88, 2.45, 3.39, 3.87, 4.53, 4.68, 5.12, 5.25, 5.55, 5.82, … 6.01, 6.27, 6.66, 6.98, 7.75, 8.25, 8.96, 9.23]; R2 = [0.01137, 0.00973, 0.00803, 0.01824,…

PMSM SMO rotor position calculation in Simulink

This is the rotor position calculation block of a PMSM_SMO simulink model. This blcok is built based on the formula below: MY QUESTION IS : WHY function arctan(u[1]/u[2]) is composed of u[1] = omega_c(cutoff frequency of the low-pass filter) and…

How to get abbreviations into vars?

Hello, My final goal is to solve this 3rd order equation or at least find one solution so that I can proceed with a 2nd order equation: eq = s^3/(Att*W1*WGB*Wp) + ((W1 + Wp)*s^2)/(Att*W1*WGB*Wp) + ((Wz + Att*WGB)*s)/(Att*WGB*Wz) + 1.0==0;…