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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 2

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

| aceptada

Respondida
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() ...

alrededor de 5 años hace | 1

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

alrededor de 5 años hace | 0

| aceptada

Resuelto


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

alrededor de 5 años hace

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

Resuelto


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

alrededor de 5 años hace

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

Cargar más