Answered
Hi. I want creat a tranfer function have parameter,but i don't know how to do it.help me pls
Hi super bad, have a look into the matlab function "tf": <https://de.mathworks.com/help/control/ref/tf.html> Kind regar...

8 years ago | 1

| accepted

Answered
Making ramp and unit step function in MATLAB
Hello Steven Franzkowiak, one solution is to write a function that behaves as the plotted function. One can argue about the p...

8 years ago | 0

Answered
changing bar color to black and white
Hi Vahid_68, the function bar does not support your command. Colors have to be given as normalized values in the range [0..1]...

8 years ago | 0

| accepted

Answered
How to separate element in row with different length?
Hi azurighte, Taking the data you provided for your task, one possible solution is the following: a = { 9611013; 12811019...

8 years ago | 0

Answered
how to use matlab code to get a series between a discrete transfer function and a continuous function
Hi Tianze Wang, hybrid systems are not supported. You have to transfer the plant into digital domain. That is then a model of...

8 years ago | 0

Answered
How can I fix the "Subscript indices must either be real positive integers or logicals." I am getting the errors my j(k) and l(k). my program works when I change the range but i only get ending term, any point in the right direction would be helpfu
Hi Janvier Solaris, the main problem despite of posting non-executable code is the reference to e(k-2) for l(k) calculation. ...

8 years ago | 0

| accepted

Answered
Get the msgid of a certain warning?
Hi Guanyu Wang: use the function warning with enabled verbosity to display extended warning messages (including suppression c...

8 years ago | 2

| accepted

Answered
How can I get the position of a datapoint on a plot?
Hi Pal Szabo, that should do what you desired: x=[1:1:5]; a=rand*10; y=[2,a,3,5,4]; set(gcf, 'Units', 'Normalized',...

8 years ago | 1

| accepted

Answered
How to implement a counter in simulink to increment in defined number of step size
Hi Shwetha Mangalore, from what I understand there are several ways to achieve what you desire. I try to sketch you two ways:...

8 years ago | 0

Answered
How would I extract the first and last nonzero numbers from this array?
Hi Brandon Fox: There are several cases that should be covered in case you want to create a robust function: # vector sta...

8 years ago | 1

Answered
Building a transfer function.
Hi Jason Gauthier, I do not see any troubles in constructing the transfer function you wrote above: Gp = tf(1, [1 10 0]);...

8 years ago | 2

| accepted

Answered
How can I prevent questdlg bonking?
Hi geotocho, since questdlg() is using an uiwait-command to prevent the user from interacting with the window the only sugges...

8 years ago | 0

Answered
How to convert a script with call backs to uitable into function
Hi Snjeev Kumar, from the information you provided the easiest way to create a function would be function myFunctionName(...

8 years ago | 0

Answered
How to display Chinese character in gui table / command window
Hello kei hin, there is one possibility to display chinese characters by switching the default character set to UTF-8 as desc...

8 years ago | 0

| accepted

Answered
Creating an array of objects in a class
Hi Jeffrey, here my solution for your tree with leafs: *Tree.m:* classdef Tree properties leaves...

8 years ago | 1

Answered
Plotting a variable against loop iteration
Hi Alaa MAZOUZ, The marker-property of plot is by default 'none'. Choose a marker. x is - according to the presented examp...

8 years ago | 1

| accepted

Answered
How to build a matrix like this
Hi Rui Zhu, another possibility: function [ A ] = SpecMatrice( n ) tic A = zeros(n); for ik = 1:n A(1:i...

8 years ago | 0

Answered
Plotting a spectrum-like figure
Hi Tahmid Chowdhury, From what you are describing you could have a look at contourf() <https://de.mathworks.com/help/matlab/r...

8 years ago | 1

Answered
How can I include membership function inside a piece-wise function?
Hi Kris, since you are using logical indexing, you must account for different sized vectors you want to write on (in your exa...

8 years ago | 0

Answered
How to simulate controller and plant without using simulink
Hi Windell: You can simulate the time response of dynamic systems to arbitrary inputs with lsim ( <https://de.mathworks.com/h...

8 years ago | 1

Answered
A waveform is generated in Matlab and then how can i export the same wave on to my IIR filter model created using simulink?
Hi, You could utilize From-File-Blocks ( <https://de.mathworks.com/help/simulink/slref/fromfile.html?s_tid=srchtitle> ). K...

8 years ago | 0

Answered
Plot Wavelet FFT in Hz
Hi Alexander, if you want to plot the Fourier spectrum of the wavelet you can apply the usual fft algorithm (described here: ...

8 years ago | 0

Answered
Plot Wavelet FFT in Hz
Hello Alexander, if you want to display wavelet analysis in terms of frequency one common way is to use the center frequency ...

8 years ago | 0

Answered
Reading selected characters from a cell
Hi Marine Sachel, Just to show you one possible way to exchange parts of strings, here a solution for your 1st row and 1st co...

8 years ago | 0

Answered
fwrite( ) displays a character incorrectly
Hi usr5, the issue addressed is the precision parameter (https://de.mathworks.com/help/matlab/ref/fwrite.html). fwrite(1,...

8 years ago | 1

Answered
Latex interpreter with sentences and symbols
Hi Aparicio Nieto, as I see the latex interpreter cannot interpret your title command. The "$"-signs indicate a math-environm...

8 years ago | 2

| accepted

Answered
Can I modify inputs for pushbutton callback
Just to add a solution for external function use (in case you want to reuse external functions instead of rewriting nested ones)...

8 years ago | 0

Answered
Create timeseries from timeseries
Hi Pankaj, if I understand your question correctly, the quick way might be to utilize the methods provided by timeseries clas...

8 years ago | 0

Answered
Calling a superclass method from any method
Hi Zangdaar, I am not sure if I got your point correctly. In my understanding you have two base classes where class_B has to ...

8 years ago | 0

Answered
Plot many curves in one plot using for loop
Hi Benjamin, the following code snippet works as you would expect it to do: % create data for ik = 1:4 x...

8 years ago | 0

Load more