back soft

مطالب مرتبط با «matlab function in function» در back soft | نویسنده: استخدام کار

Using tf() function in MATLAB

Vote count: 0 I'm trying to input this transfer function in matlab, but I can't figure out how because it has both positive and negative exponents. If I do H = tf([1],[1 1 1 1],0.1,'variable','z^-1') I almost get it, but I can't figure out how to add the positive z to the bottom. I'm trying to use this H to plot the poles and zeros with pzmap(H). asked 55 secs agoJake Let's block ads! بخوانید...

ادامه مطلب

Matlab function in Simulink - retain previous non-zero input value

Vote count: 0 I have a Matlab function block in Simulink that receives 2 inputs and processes it to generate an output. During the course of the simulation, at some time points, one of the inputs is zero. I'd like to use the most recent non-zero input to the function whenever that particular input value is zero. How can I achieve this? I tried creating a persisent variable that updates to most recent non-zero input value but that doesn't seem to work. asked 10 secs agoarun Let's block ads! بخوانید...

ادامه مطلب

An error in the timer function (MATLAB R2014a)

Vote count: 0 I am stuck in an error of timer function. Although I have tried to search, I find no answer. function figure1_CreateFcn(hObject, eventdata, handles) global t t= timer( 'ExecutionMode', 'fixedRate', 'StartDelay',1, 'Period',1,'TasksToExecute',150); t.TimerFcn = {@my_callback_fcn}; The error is that: Error while evaluating TimerFcn for timer 'timer-1' Too many input arguments. My matlab version is R2014a. The start function is in a pushbutton2_Callback function. I have tried to change period to 1.0, TasksToExecute to inf or TimerFcn in the timer( )...It does not help. Is there anyone who can help me out ? Please! Thanks asked 53 secs agostander Qiu Let's block ads! بخوانید...

ادامه مطلب

How to call a function palced in another in matlab

Vote count: 0 I've a huge project made in Matlab, it has 15-18 script files. It is becoming very challenging to understand the whole code. I was thinking if I can put some scripts in another folder, It will become very straightforward to understand and maintain the code. Is it possible to do that. Consider the below directory structure How can I call a function from main.m placed in func.m in Folder 1. asked 40 secs agoAtinesh Let's block ads! بخوانید...

ادامه مطلب

How to set NaN values to Transparent in Matlab 'geoshow' function?

Vote count: 0 I am trying to plot rainfall values in MATLAB using geoshow function. NaN values should be transparent in the map. However, the plot I am getting comes with dark blue color for NaN values. I have found that this is an issue in MATLAB. Below is what I am trying; geoshow(lat,lon,data, 'DisplayType', 'texturemap'); Where, lat, lon, and data are 2-dimensional matrices. How to set NaN to transparent? asked 32 secs agoMario Let's block ads! بخوانید...

ادامه مطلب

Is there a Matlab equilivant of the Matplotlib `bbox_inches='tight'` function for subplots?

Vote count: 0 I have a Matlab figure: And I want to automatically fill the window by making all plots as big as possible while not loosing regularity in the formatting. In Python's matplotlib module this is as easy as using bbox_inches='tight' when ungin plt.savefig. Is there a Matlab equivalent? asked 1 min agouser3059024 Let's block ads! بخوانید...

ادامه مطلب

I don't understand the means of a function in matlab

Vote count: -1 enter image description here please help me I don't understand this notation and I have to use it in matlab asked 36 secs agojey This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب