Answered
Unknown variables appearing in solutions for symbolic equation solver
This is shown in the documentation of solve, under Solve Polynomial Equations of High Degree. You should call the function wit...

1 month ago | 0

Answered
What is MATLAB doing when adding multiple ZPK transfer functions together?
Yes but you are doing a fractional algebra. To refresh your memory: a/b + c/d = (a*d + c*b)/(b*d) Since numerator stays b*d, ...

1 month ago | 0

Answered
Want to programmatically get the Maltlab status of (ready, busy), etc., in the bottom left corner of the window. What procedure will be used?
I recommend you use waitbar() function as an indicator of the progress within the code. f = waitbar(0,'Program started...'); %...

1 month ago | 0

Answered
How to save a output matrix in each iteration?
Here is one way, where M_total_P is a 2x2x901 matrix, where 901 is the number of frequencies you have in the code. clc clear ...

1 month ago | 0

Answered
I am getting this warning "Matrix is singular to working precision." and my surf plot is not showing.
You are doing a matrix mutiplication when you call the u() function, since you call u function with matrix arguments X and Y. Th...

1 month ago | 1

Answered
Gain dimension failure ending in error
G gain is set for element wise multiplication instead of matrix multiplication, hence (1,4).*(4,1) = (4,4). x = ones(4,1); G =...

1 month ago | 0

| accepted

Answered
change the color of curve from blue to any color and make it bold
x= 0:0.01:2*pi; y = sin(x); plot(x,y,'r') % r stands for red look at the documentation for different colors

1 month ago | 0

| accepted

Answered
Hi, why am I getting an error?
You provide a fitlm model to plot function and a color option. Remove the color option and try again. So change % plot(F_sept...

1 month ago | 1

| accepted

Answered
Unrecognized function or variable 'del'.
Not recommended but you can generally overwrite native variable/function names. I cannot reproduce your problem n = 0; for del...

1 month ago | 0

Answered
How to make the encircled curve by blue.
You have one weird data and script to visualize but here is one way clear all warning off % you had references to F:/ folder ...

2 months ago | 0

| accepted

Answered
How to vary angles at constant rate in a kinematics problem?
For loops are easy to understand but as mentioned in comments, once you understand the logic you should vectorize it. The basic ...

2 months ago | 0

| accepted

Answered
how to get the name of current running m script
mfilename() function seems to be what you are looking for.

2 months ago | 0

| accepted

Answered
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} = @...

3 months ago | 2

Answered
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...

3 months ago | 0

| accepted

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

3 months ago | 0

Answered
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...

3 months ago | 0

Answered
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...

3 months ago | 0

Answered
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...

3 months ago | 3

| accepted

Answered
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...

3 months ago | 0

| accepted

Answered
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'); ...

3 months ago | 1

| accepted

Answered
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);...

3 months ago | 0

Answered
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...

3 months ago | 0

| accepted

Answered
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) = ...

3 months ago | 0

Answered
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 ...

3 months ago | 0

| accepted

Answered
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...

4 months ago | 0

Answered
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.

4 months ago | 0

Answered
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...

4 months ago | 0

| accepted

Answered
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.

4 months ago | 0

Answered
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 ...

4 months ago | 1

Answered
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'...

4 months ago | 0

Load more