已回答
Class property validator reports an error if no default value is set
You can write your own validation function classdef MyClass properties hWriteFunc(1,1) {mustBeFunctionHandle} = @...

6 months 前 | 2

已回答
contour diagram with three vectors
Here is one way: x = linspace(0,4,10); % x coordinate y = linspace(0,8,10); %^y coordinate [X,Y] = meshgrid(x,y); % meshgri...

6 months 前 | 0

| 已接受

已回答
Reset value of Ramp block to be used in Matlab Fctn block
Seems like this was a homework problem :D Take a look here:

6 months 前 | 0

已回答
Ramp block having reset option
Here is one way with enabled subsystem, where the subsystem comes up with an offset (so if the ramp number gets too large it mig...

6 months 前 | 0

已回答
Constant estimation from 2 noisy measurements
@Viktor Cockx, A bit late but here is an example for a mass spring damper system, where I am trying to estimate the mass, spring...

6 months 前 | 0

已回答
What does this section mean?
Probably the integral reset functionality. So when you disable and enable the controller, the integral term will reset to 0 to p...

6 months 前 | 3

| 已接受

已回答
Creating a block for a term like (4s+1) in simulink?
I suggest you try to understand why 4*s+1 cannot be simulated. Although there are workarounds. hint: what does s do to a time do...

6 months 前 | 0

| 已接受

已回答
Find a value using an index obtained from a different matrix with same dimensions
Something like this maybe: %% your matrices val = load('Total_matrix_cases.txt'); x = load('Total_matrix_rotations.txt'); ...

6 months 前 | 1

| 已接受

已回答
Higher order Hungarian algorithm?
Somthing like this maybe; a=[ 4 5 2]; b=[-8 -13 3]; c=[ 4 7 -9 11]; thresholdValue = 2; [A,B,C] = meshgrid(a,b,c);...

6 months 前 | 0

已回答
Ive completed code for an assignment but receive strange answers any help?
You are getting NaN because your s1 is equal to s2: s1=-wnN*zetaN-wdN*i s2=-wnN*zetaN-wdN*i where you forgot the ...+wdN*i fo...

6 months 前 | 0

| 已接受

已回答
How to create this equation in simulink?
you can use 'delay' block to make the u(t) = u(t-1) part of the equation. you can use another 'delay' block to make the e(t) = ...

6 months 前 | 0

已回答
Formating a structs value
Something like this maybe: syms v1 v2 ; symbols = [v1;v2]; equations = [3/125 - v1/500 == v1*(0.0005 - 0.0001i) - 0.0005*v2 ...

6 months 前 | 0

| 已接受

已回答
What is End of life and End of support for MATLAB version R2018a ?
Checkout the answer here. To quote the staff response "The end of life (EOL) for MATLAB releases depends on the date when Math...

6 months 前 | 0

已回答
How to change the parameter value at run time in Matlab Simulink
I think what you are looking for is the dashboard, link here. It provides an interactive interface with a running model.

6 months 前 | 0

已回答
How do determine the maximum and minimum point form origin on a contour graph
Not sure exactly what you want but contour function can give you interpolated x-y positions for a specific level. From there you...

6 months 前 | 0

| 已接受

已回答
how to learn mil,sil and hil tool testing in real time example
A good start is always mathworks website. Find the link in the answer here.

6 months 前 | 0

已回答
Couple ODE System not enough Input arguments, Why?
You should use @ symbol before the functions in your bvp4c call. Now you have another error, good luck solving it :D hint: what ...

6 months 前 | 1

已回答
How to draw the letter phi on matlab?
Here are bunch of greek characters and how you can put them in a string/character: sprintf('%c ', 910:1000) phi = sprintf('%c'...

6 months 前 | 0

已回答
Can I see code changes in the editor window?
You can right click the .m file on Matlab's 'Current Folder' view. There under the 'Source Control' you have options to 'Compare...

6 months 前 | 0

已回答
Could anyone tell me what it means in the code(xfer1(i) = xfer(5,1))?
So from the context, it seems like 'xfer' is the complex value of your transfer function at a particular 'w', it is a 5x5 matrix...

6 months 前 | 2

| 已接受

已回答
How to plot 3-D bode from the derived transfer function?
Here is one way: % undamped system where w defines the natural frequency and s is the % s-domain frequency grid variable sys ...

7 months 前 | 0

已回答
Display of nodal values of a matrix
You can use patch and text functions: nrRow = 4; % number of rows nrCol = 6; % number of columns recW = 0.5;% rectangle wid...

7 months 前 | 0

已回答
Two sets of data with two date ranges and y-axis values
Something like this maybe: % create dummy time and data vectors t1 = datetime(2013,11,1,8,0,0); % define random start of time ...

7 months 前 | 0

已回答
How to write theta - theta bar as a axis label
scatter(1:10,rand(1,10) , "Filled"); grid on xlabel('$\theta$ - $\bar{\theta}$','interpreter', 'latex')

7 months 前 | 1

| 已接受

已回答
Plotting functions of more than one variable, f(x,y)
A simple code: y = -20:0.001:20; % define y y(y==0) = []; % remove y == 0 for to prevent division by zero in x2 equation x1...

7 months 前 | 0

已回答
How to plot multiple saved figures as .fig into a single figure?
Check this answer, I think it will be helpful for you.

7 months 前 | 0

| 已接受

已回答
How to calculate the difference error between Runge-Kutta Order 4 Method and euler method?
You can add a 'eul' function for euler integration and take the norm of the difference between the resulting outputs. clear all...

7 months 前 | 0

| 已接受

已回答
Assemble Global Stiffness Matrix
I think this is what you are looking for. You can extend the logic in a better way if you have more than 3 nodes. % create rand...

7 months 前 | 1

已回答
Add a red line on the graph
If you want to put a vertical line on an x value, you can also use plot(0:0.01:2*pi,sin(0:0.01:2*pi)) % random plot xline(3,'r...

7 months 前 | 0

已回答
Good day, I need help in building a reference signal from an ISO Specification. I have tried "create signal app"; however, it does not help much.
Something like this maybe clc tInit = 2; % initial Ub duration tFin = 2; % final Ub duration tr = 0.2; t6 = 0.4; t7 = 0.7;...

7 months 前 | 1

| 已接受

加载更多