Réponse apportée
How can I use the matlab function like fcn block
There was one missing block from the step input signal that is a derivative block. Note that using the derivative block is not r...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
smoothing the heart rate plot that connected with arduino
use smoothdata() or smooth(), e.g.: x = linspace(-pi, pi); y = 2*cos(2*pi*x) + 0.5*randn(1,100); ys =...

environ 3 ans il y a | 1

Réponse apportée
putting conditions on the axis intervals in fsurf
If understood your question correctly, this is what you are trying to attain: gamma=0.5; p=@(Rh, Rl)(gamma*Rh+ (1-gamma)*Rl)/2...

environ 3 ans il y a | 0

Réponse apportée
How can I use the matlab function like fcn block
MATLAB Fcn block can be embedded - see attached Simulink model of your exercises with some modifications. It works perfectly fin...

environ 3 ans il y a | 0

Réponse apportée
how can we find the intersect points of these two plots?
Here is how to compute the intersect points of the plotted set of data points: clearvars close all y=-3:1:5; a=1:50; for ii...

environ 3 ans il y a | 1

Réponse apportée
How to plot 2 functions into one plot
Here is a code that shows the plot figure similar to the assignment: % density p = 1.009; %dynamic visc mew = 3.09e-5; %wi...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
linearize a non linear system
One of the ways of linearization in Simulink environment is to use the right mouse button option after clicking on the block (a ...

environ 3 ans il y a | 0

Réponse apportée
How to find a list of dates from a timetable?
An alternative solution: D1 = load('Date_Captured.mat').Date_Captured; D2 = load('Date_to_find.mat').Date_to_find; D2_Date = ...

environ 3 ans il y a | 1

Réponse apportée
Simulink Carrying Capacity for multiple ODEs in SEIR modelling
If understood your queston correctly, you are trying to sum up all of your found (simulated) solutions from 8 ODEs. Here is one ...

environ 3 ans il y a | 0

Réponse apportée
Sensor modelling in Simulink
There are a few nice docs and guides on sensor fusion and simulation of autonomous vehicles in conjunction with sensor readings:...

environ 3 ans il y a | 1

Réponse apportée
Install 2018b or any older versions
Here is a nice thread of answers to your posted questions. See ANSWERS

environ 3 ans il y a | 0

Réponse apportée
Start Simulink sim with persistent variables, using stored state
Suppose that you have followed these guides with the persistent variable initialization in your model: DOC

environ 3 ans il y a | 0

Réponse apportée
Multiplication of vectors in for loops
If understood your question correctly, this is how you can get it done: radius = randi(10, 3, 3); % contains 9 different valu...

environ 3 ans il y a | 0

Réponse apportée
what kind of device is needed to stream data from an accelerometer?
You need a DAQ - data acqusition system and cable to connect an accelerometer and DAQ, and USB (most of the cases nowadays) to c...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How can I make an array using for loop?
It is advised to use timetable instead of timeseries(). Therefore, it is straightforward to create timetable using array2timetab...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
ar System Identification Toolbox
(1) I would start looking at ar() fcn of thte System Identification toolbox and see how it functions and what capabilities (opti...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
How to multiply a matrix by 0?
Why to muply the matrix by zero when the resul;t will be a matrix of the same size with zeros. If you need to create a matriz of...

environ 3 ans il y a | 0

Réponse apportée
How can I extract a specific time for a "datetime" table?
Here is one partial answer that finds the data pointsat specific times, i.e. 02:00, 03:00, 12:00, 13:00 and overlooks other time...

environ 3 ans il y a | 1

Réponse apportée
How to obrain p-values for coefficients with polyval - polyparci?
Note that polyparci() is not a MATLAB built in fcn and it is posted here. Note that it is quite stratforward to obtain p-values ...

environ 3 ans il y a | 0

Réponse apportée
Move x-axis labels below the axis after relocation
Here is how it can be done, e.g.: x = linspace(-pi, 3*pi); y = sin(2*x); plot(x, y), grid on ax=gca; set(gca, 'XAxisLocatio...

environ 3 ans il y a | 0

Réponse apportée
How can I save a cell array full of doubles tp a file?
use save() to save in *.mat - e.g.: A = randn(10,2); B = rand(10,2); C = randi([-100,100], 10,2); CS{1,1} = A; CS{1,2} = ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Plot data on a global map
(1) Load your data (2) Plot world map (3) Hold on the plot figure (4) plot your data on top of the world map. E.g.: worldmap...

environ 3 ans il y a | 0

Réponse apportée
Hello I am an electrical engineering student and I plan to work on direct power control of bldc generators, which MATLAB toolboxes do I need to install?
Without knowing your intended problems/exercises, it is difficult to suggest what specific (min number of) toolboxes you would n...

environ 3 ans il y a | 0

Réponse apportée
Direct control of bldc generator power
Here are two good sources on BLDCR motor simulation: https://www.mathworks.com/help/sps/ug/brushless-dc-motor.html https://www...

environ 3 ans il y a | 0

Réponse apportée
How to have a function return a coordinate point?
Here is the corrected code: % Ver 1 xy = unitCircle(pi/4) function xy = unitCircle(theta) xy=[cos(theta); sin(theta)]; end ...

environ 3 ans il y a | 0

Réponse apportée
Is there something wrong with my anonymous function definition?
If x1 and x2 are scalars, then A and B are equivalent: % A fun1 = @(x1,x2) (x1 - 3.67.*10^-6).^2 + (x2-3.67.*10^-7).^2; x1 = ...

environ 3 ans il y a | 0

Réponse apportée
While loop not running
Here are a few points to be considered in the code. Size (length) of v1 is different from the size of v2, and similarly, the si...

environ 3 ans il y a | 0

Réponse apportée
load multipages TIF image
Here length() does not do the job. therefore, it is better to use tiffreadVolume() Here is the corrected code: functio...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Need to create a contour plot from to equations when given x and y ranges.
q = 100; h = 2; p = 1; x = linspace(0, 10, 20); y = linspace(-10, 10, 20); [xx,yy]=meshgrid(x,y); psi = (q/2*pi) * atan((y...

environ 3 ans il y a | 0

Réponse apportée
pass a struct through a loop to extract data and have the i in the loop added to the name
Here is one of the viable codes to read series of data and store in a structure array: path = 'C:\...' % Specify the path ...

environ 3 ans il y a | 0

Charger plus