Answered
How can i write this function in matlab?
No, u(t) represents the unit step function. You should use heaviside(t) but watch out for the value at heaviside(0) You can a...

4 jours ago | 0

Answered
How to remove commutativity from symbolic multiplication
In MATLAB, individual symbolic variables are always assumed to be scalars, and commutivity applies to scalars. It is not *imp...

4 jours ago | 0

| accepted

Answered
splitting up time series into separate chunks?
When you use plot() with a timeseries object, the time involved is already embedded in the timeseries object. Therefore you only...

5 jours ago | 0

| accepted

Answered
Transform char variable to matrix
tmp = {'002,005';'002,003';'002,005'}; NewVar = cell2mat(cellfun(@(S) sscanf(S, '%f,%f').', tmp, 'uniform', 0));

5 jours ago | 0

Answered
Legacy MATLAB R2009b and R2015b stopped working after update from MacOSX 10.11 to 10.13
You need to install the Java 6 Legacy Runtime; https://appuals.com/how-to-install-legacy-java-se-6-runtime-on-macos/ Caution: ...

5 jours ago | 0

Answered
Index in position 2 is invalid. Array indices must be positive integers or logical values.
Warning: this produces one figure for each phi value !! Your code structure does not accumulate or average values over the diffe...

5 jours ago | 0

Answered
Error using subplot, cannot set property to a deleted object
sliceViewer deletes the axes of its parents, so you cannot put it into a subplot. However, sliceViewer can be put into a uipane...

5 jours ago | 0

| accepted

Answered
how can add path of specific file in another file of matlab?
You cannot add the path to a specific function. You can cd to the directory that the function is in, and @ the function name ...

5 jours ago | 0

Answered
Not enough input arguments
You are trying to run the code by clicking on the green Run button. You need to go down to the command line and invoke the funct...

5 jours ago | 1

| accepted

Answered
Definite integral computed for different data points, where limits of integration change with each data point
You need to do each integration separately. Using 'ArrayValued' is incorrect for your purpose. I would suggest you get the who...

5 jours ago | 0

Answered
fread() in MATLAB and C
Is fread() in MATLAB and C different? Yes Can I directly use this comman in a C program. WOuld it give the same result?? No, ...

5 jours ago | 0

| accepted

Answered
error while reading and selecting images randomly from multiple folders
F = {S(X(1:5)).name}; % randomly select 5 filenames. That gives you 5 filenames relative to the current folder fn = f...

5 jours ago | 0

| accepted

Answered
How can assign a color channel to an image series?
The classic reason to get out a black window when you use imshow() but imshow() with [] looks okay, is to start with image data ...

6 jours ago | 0

| accepted

Answered
calling a nested function in matlab
feval() and str2func() only look for functions in the "top level" namespace -- the functions with corresponding .m or .slx or .m...

6 jours ago | 0

Answered
Add a new row to a table with addrow function
addRow has to do with Simulink custom formating only. https://www.mathworks.com/help/slcheck/ref/modeladvisor.formattemplate.ad...

6 jours ago | 0

Answered
sine wave, voltage vs time
xlabel('time (s)', 'FontSize', 20) ylabel('voltage (V)', 'FontSize', 20) title('Voltage vs time', 'FontSize', 20) Now it plot...

6 jours ago | 0

Answered
Delete 335 values every 335th time.
A completely different approach using the signal processing toolbox: groups_of = 335; as_columns = buffer(x, 2*groups_of); ...

6 jours ago | 1

Answered
error using plot: Data must be numeric, datetime, duration or an array convertible to double.
You are not assigning to ac in the posted code. Your t is a vector. Your if is testing a vector. A vector if test is only tru...

6 jours ago | 1

Answered
MATLAB Answer need better policy
No, it is not possible to change the policy to force the volunteers to create Answers instead of Comments. The volunteers would ...

6 jours ago | 0

Answered
Display a Table in GUIDE

6 jours ago | 0

| accepted

Answered
scalar vs matrix vs vector vs array??
scalar: has exactly one value associated with it. Not empty, not more than one value. vector: an array that is (1 x something) ...

6 jours ago | 2

Answered
Warning: Unsuccessful read: The specified amount of data was not returned within the Timeout period.
https://www.mathworks.com/help/instrument/fread.html Rules for Completing a Binary Read Operation A read operation with fread...

6 jours ago | 0

| accepted

Answered
I wrote the data of the plot in a .dat file but when plotting the same file the graph is not the same
fprintf(Mz,'%f\t%f\n',S(:,1:2).');

7 jours ago | 0

| accepted

Answered
A newbie question: quiver failed to draw direction field of differential equation with 'Warning: Matrix is singular to working precision'
[T, Y]=meshgrid(-3:0.1:3, -3:0.1:3) T and Y are going to be equal size matrices after that. S=T.^2/(1. - Y.^2); Each element ...

7 jours ago | 0

| accepted

Answered
Help with For loop and Indexing
subplot(1,3,1) plot(A(:,1)); subplot(1,3,2) plot(A(:,2)); subplot(1,3,3) plot(A(:,3)); However, I suspect that what you re...

7 jours ago | 0

| accepted

Answered
robotics: manipulators arm
A_02 = simplify( A_01(q1)*A_12(q2)); That returns an array, not a function handle or symbolic function. A_03 = simplify(A_02...

7 jours ago | 0

| accepted

Answered
Can I take the online/self paced "machine learning with matlab" class if I don't have the associated toolboxes?
Yes, but you would not be able to practice on your own. If you have access to MATLAB Online, then _that_ has the Neural Network...

7 jours ago | 0

Answered
How to obtain IFFT for a set of experimental data in a text file?
You can zero-pad the 900 entries before x = 1500000000 . You can then take the complex conjugate of the augmented y, and flipud(...

7 jours ago | 0

Answered
Issue with 3d plots
That can happen if you called hold on before generating the 3D plot. When you call hold on, the view() gets frozen unless you ch...

7 jours ago | 0

Answered
Insatlling Matlab 7.04 (R14SP2) on Windows 10
Mathworks Support can create PLP for existing permanent licenses; your R2019b license entitles you to run R14SP2 on the same mac...

7 jours ago | 0

Load more