Answered
How do I get the inverse laplace of this time function?
Use the tf2sym function from https://www.mathworks.com/matlabcentral/fileexchange/10816-ovivero-mimotoolbox Transfer functions...

4 giorni ago | 0

| accepted

Answered
Borrowing license didn't work
The MATLAB license may need to be borrowed as well, unless you have a LNU (Login Named User) license for it on your system. LNU...

4 giorni ago | 0

Answered
How to rename field in a struct?
In current releases of MATLAB it is not possible to get numeric field names, not even if you load a file written by third-party ...

5 giorni ago | 0

Answered
Error using optimization tool bx
linprog() does not permit a function handle as the first argument. linprog is linear programming, which permits the problem to b...

5 giorni ago | 0

Answered
need help with textscan order
S = fileread(Save_Airfoil.txt); S = regexprep(S, '^.*---\s*$', '', 'lineanchors'); dataBuffer = cell2mat(textscan(S, '%f%f%f...

5 giorni ago | 0

Answered
interp1 find values at axis zero problem The grid vectors must contain unique points.
The below entry numbers ignore the header line (so they refer to array indices) Entry #102 occurs again at #111 Entry #105 occ...

5 giorni ago | 1

| accepted

Answered
Indexing and iteration problem. Few lines holding me back. Please, HELP!
Em(a,b) your a and b are floating point numbers which cannot be used as indices. Em(ind_am, ind_Am) It is confusing that...

5 giorni ago | 0

Answered
How to print contents of nested cell array to uitable?
Astr = cellfun(@string, A, 'uniform', 0); Alen = cellfun(@numel, Astr); maxlen = max(Alen); FirstN = @(V,N) V(1:N); Astr =...

5 giorni ago | 0

Answered
Rounding numbers below 0.7 to 0.7
Recommended: efficiency_final_array = max(efficiency_final, 0.7); For some reason this code never executes the if statement in...

5 giorni ago | 1

Answered
How to create an infinite matrix?
You cannot. The maximum array size in MATLAB is 2^48 - 1.

5 giorni ago | 0

| accepted

Answered
Finding the location of particular value
[maxacc, maxaccidx] = max(acceleration); maxaccvel = velocity(maxaccidx);

5 giorni ago | 1

| accepted

Answered
TCP congestion control algorithm
Is there anyone who could help me to have some suggestion regarding TCP congestion control algorithm. A number of them are desc...

5 giorni ago | 0

| accepted

Answered
How to get the corresponding data from a table
If the efficiency number is an individual entry stored in the efficiency map, then: eff_number = interp2(X, Y, Eff, speed_of_in...

5 giorni ago | 0

| accepted

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

5 giorni 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...

5 giorni 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...

6 giorni 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));

6 giorni ago | 0

| accepted

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

6 giorni 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...

6 giorni 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...

6 giorni 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 ...

6 giorni 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...

6 giorni 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...

7 giorni 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, ...

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

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

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

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

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

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

7 giorni ago | 1

Load more