Answered
u(t)=sinc⁡(100t)and y(t)=cos(400πt) and x(t)=u(t)*y(t)
syms t u(t) = sinc(17*t) fplot(u)

4 years ago | 0

Answered
MATLAB PCode Warning on R2021a
I can tell from the path that you are using Linux. For Linux or MacOS, you can use the system utility touch utility to change th...

4 years ago | 0

Answered
Log some resolved signals
https://www.mathworks.com/help/simulink/ug/configuring-a-signal-for-signal-logging.html#bsw9nl4-3 shows how to configure data lo...

4 years ago | 0

Answered
What is the easiest way to import a text matrix into Matlab?
readcell(FileNameGoesHere, 'delimiter', '\t') or readtable(FileNameGoesHere, 'delimiter', '\t', 'readvariablenames', false) Q...

4 years ago | 0

| accepted

Answered
How to matwrite file from 4D to into 3D
Which is 4D. then have different dimension each. You need to take the different dimensions into account. volReader = @(x) ma...

4 years ago | 0

Answered
Why ''int'' and ''integral'' return different answers
You should pass in abstol and reltol options to integral() integral() subdivides intervals until the contribution appears to ...

4 years ago | 0

Answered
Lack of some toolboxes
Simscape Electrical is an additional Product that is extra cost.

4 years ago | 0

Answered
How to add the varibles from a script to the workspace to use it in another script
This is normal and expected behavior for programming languages that have local variables (which is to say the overwhelming major...

4 years ago | 0

Answered
Deployment Problems GUI to Exe (or Web or Desktop)
The relevant toolboxes are not available for Home license. Home license is for personal use only.

4 years ago | 0

| accepted

Answered
Exiting: Maximum number of function evaluations has been exceeded
https://www.mathworks.com/matlabcentral/fileexchange/10176-ezyfit-2-44 is not documented as accepting options. The function wou...

4 years ago | 1

| accepted

Answered
App Designer: Using app.Component.Value vs. event.Value in callback function
You can code the exact same callback for multiple components. You would not know immediately which component the event was for. ...

4 years ago | 1

| accepted

Answered
Search for values in a matrix
mask = any(YourMatrix(:, 1:2)==SearchValue,2); subset = YourMatrix(mask, :) ;

4 years ago | 0

| accepted

Answered
How to retrieve Matlab EPS Figure to Matlab.m
No, this is not possible. If you search the File Exchange for tag "digitize" you will find a number of contributions that can...

4 years ago | 0

Answered
How do you know if a call to "writetable" is successful?
An error condition would be generated if writetable() or save() fail. Exceptions: * if the operating system or file syste...

4 years ago | 0

| accepted

Answered
Execution of script fmincon as a function is not supported
you named your file fmincon.m When you go to execute the file and it encounters the fmincon() call, it is going to search the...

4 years ago | 0

| accepted

Answered
How do I select files in a directory based upon day, month, and hour they were last modified or created?
f = dir("*.wav"); filenames = fullfile({f.folder}, {f.name}); fdt = datetime([f.datenum], 'convertfrom', 'datenum'); [~, ~,...

4 years ago | 0

Answered
Special Characters App Designer
Edit Fields cannot support tex or latex: they are input areas and supporting that possibility would require supporting a latex f...

4 years ago | 0

Answered
datetime conversion from Excel to MATLAB wrong
datetime.setDefaultFormats('default','yyyy/MM/dd hh:mm'); hh is for 12 hour day. You need HH for 24 hour day.

4 years ago | 1

Answered
How to implement the message printed before in the app.TextArea not be cleared, when a new message in app.TextArea is printting
There is no setting for that. You have to handle it yourself by setting the value to the combination of the old and new values. ...

4 years ago | 0

Answered
In epsilon test for comparing equality of two numbers. How to improve the test?
* is the tolerance absolute or is it relative? If it is relative, then relative to what? * what change needs to be made to the ...

4 years ago | 0

Answered
Out of memory. The likely cause is an infinite recursion within the program.
In any recursive function, the first thing you need to do is test for the termination condition. For example, test if the input ...

4 years ago | 0

Answered
Adding polar plot to axes is not supported
That error could potentially happen if figure(i) already exists and has a non-polar axis that already has "hold on" -- oh yes, a...

4 years ago | 0

| accepted

Answered
Continuous monochrome image sampling
xvec = linspace(0,1,7); %x is columns yvec = linspace(0,1,5); %y is rows [X, Y] = meshgrid(xvec, yvec); F = X.*(1-Y) + Y.*(...

4 years ago | 0

| accepted

Answered
can you help me fix this moving average filter it keeps giving me errors, I suppose to design a moving average filter from the filter equation bellow
window_half = (M-1)/2; You are controlling M from a slider, so it will not always be odd valued, so window_half will not always...

4 years ago | 0

Answered
finding the closest value
Sort each of the data sets. Then proceed iteratively matching points, first from one set and then the other. For A(1) find the f...

4 years ago | 0

| accepted

Answered
logic question regarding two vectors
The "or" operation for vectors is written as the | operator. The "and" operation for vectors is written as the & operator. The...

4 years ago | 0

Answered
adding or subtracting depending on the number
Variable = Variable + sign(Threshold - RandomNumber) * amount

4 years ago | 0

Answered
I want to make, MATLAB can log in by for number of people and use the software (but not simultaneously).
You just install matlab normally on the computer, using the dedicated computer license. The license will get stored in the insta...

4 years ago | 0

| accepted

Answered
Why do I always need to run plot twice?
When you call hold on before you do any plotting, then the xlim and ylim will default to 0 1 and will not change unless you call...

4 years ago | 0

Answered
Inconvenience working with matlabFunction
Sorry, but matlabFunction() is not going to change about this, as it involves a fundamental model of what symbolic variables *ar...

4 years ago | 0

Load more