Answered
Can't solve matrix dimension issue and define a variable.
Hi, You need to pre-define y before x being computed. Otherwise, y can't be computed within your nested function.

5 years ago | 0

Answered
Does "fsolve" still avaliable for sloving the nonlinear equation?
Hi, In order to employ fsolve() function, you should have optimization toolbox installed in your computer. fsolve is part of...

5 years ago | 2

| accepted

Answered
A query regarding 'fmincon' function
Hi, Yes, you'd need to have optim toolbox installed in order to run a code containing fmincon(). Good luck.

5 years ago | 0

| accepted

Answered
Accessing .cdf files
Hi, You would need additional patch installed to read .cdf extension files. Here is the source: https://www.mathworks.com/ma...

5 years ago | 0

| accepted

Answered
Is it possible to evaluate the differential equation from a simulink model?
Hi, The anwer is simple. 1/s means or its reverse means derivative. SO, the diff equations would be u_M(t) = dd(phi), d(phi)...

5 years ago | 0

| accepted

Answered
two coherent and two correlated signals in Matlab
close all; clc; clearvars; w = [pi/4 pi/4 pi/2]'; % Frequency P = length(w); % Number of signa...

5 years ago | 0

Answered
How to multiply higher order matrices?
Hi, Maybe this one solves your exercise: squeeze(C)

5 years ago | 0

Answered
What is the relationship Q, R and P in Kalman Filter?
Hi, It is nice that you are trying to design your own Kalman filter. But why not to play with MATLAB's built in Kalman filter...

5 years ago | 0

| accepted

Answered
Why my plotting curves exceed the loop index?
Hi, There might be a couple or more possible cases. Presumably (preassumption without seeing your data), one of your imported...

5 years ago | 0

Answered
Help with Matlab homework question
What you are computing is not quite correct. But you have done some attempt. Here is a simple solution n = 1:54; x(1)=0; for...

5 years ago | 0

Answered
Use kron to build a matrix
Hi, In you exercise, use eye() and kron(). and then change the necessary element of the generated matrix if necessary. Goo...

5 years ago | 0

Answered
Empty sym: 0-by-1
Hi, There is a typo in your eqn: ...1000.*0/60*1000)*0.0086 Good luck

5 years ago | 0

Answered
Help with Matlab homework question
Use colon operator ":" to generate the series of x(n+1). And to select or take out only n = 0, 5, 10, 15,…54 values, use again "...

5 years ago | 0

Answered
ReadTable Producing ExtraVar Headers
Hi, One more step is needed to get the numbers in double. filename='sample_log_temp.csv'; opts = detectImportOptions(filena...

5 years ago | 0

Answered
How to create contour maps in MATLAB?
Hi, Here is a nice matlab code for kriging method based interpolation. https://www.mathworks.com/matlabcentral/fileexchange/...

5 years ago | 0

Answered
Help recreating square wave from equation
Hi, IHere is the correct code: t = .. T = .. n=1:2:15; % By increasing n = 1:2:25, you will get much better approximation...

5 years ago | 0

| accepted

Answered
How to read time as string data from excel file
Hi, You should try using xlsread() in this case. In fact, xlsread is slower than readtable(). Then you can employ datenum() ...

5 years ago | 1

Answered
How to rename many files in a folder simultaneoulsy using matlab
Hi, Here is a nice robust answer code to rename files proposed by Walter that you can employ in your exercise. https://www....

5 years ago | 0

| accepted

Solved


Too Many Zeros, Dump Them!
Sometimes when I create a matrix, I use this syntax: a = zeros(1000,1000); But when the function ends, I find that I don'...

5 years ago

Answered
Time Domain input to Transfer Function
Hi, Your questions are more signal processing and control related rather than MATLAB. Anyhow, from the perspective MATLAB use...

5 years ago | 1

| accepted

Answered
Help recreating square wave from equation
Hi, It is a quite straightforward exercise. You can create this signal using a colon operator (:), or [for .. end] or [while ...

5 years ago | 0

Answered
extract 64 lowest frequency components of fft
Hi, For image analysis, fft2 is to be used and that is quite straightforward. Here is an additional help discussion on this:...

5 years ago | 0

| accepted

Answered
Tab group in appdesinger
Hi, Here is the well explained discussion on how to design tab groups and a thorough answer provided. https://www.mathworks....

5 years ago | 0

Answered
Patent an algorithm written in Matlab ?
Hi THis is a very interesting topic. Here are a couple of published sources that address your raised questions partially but...

5 years ago | 0

Answered
Obtain data from file header
Hi, In your exercise, two data import functions can be employed. They are fscanf() and textscan() by which you can not only r...

5 years ago | 0

Answered
STL file import to MATLAB
Hi, Here is a nice discussion on this issue. https://www.mathworks.com/matlabcentral/answers/647913-import-file-stl-paramet...

5 years ago | 1

| accepted

Answered
error: IDASolve failed
Hi, Don't specify the solver solution step here that enhances the solver's solution algorithm to adjust the step size. It is ...

5 years ago | 0

| accepted

Solved


Replace Nonzero Numbers with 1
Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

5 years ago

Answered
Measure shifts in the stripes
Hi, Here is a good solution proposed by Image Analyst. https://www.mathworks.com/matlabcentral/answers/431483-how-to-detect...

5 years ago | 0

Answered
"s" in Numerator in First-Order Filter
Here is a very nice explantion and answer to your question already given. https://www.mathworks.com/matlabcentral/answers/93570...

5 years ago | 0

Load more