Answered

Is it possible to rename columns in a table?

This way of an array to table conversion is also feasible and less computationally intensive. B=[10 11 12 13 14; 15 16 17 18 19...

Is it possible to rename columns in a table?

This way of an array to table conversion is also feasible and less computationally intensive. B=[10 11 12 13 14; 15 16 17 18 19...

5 months ago | 0

Answered

Efficiently importing data into a table based on a matching column value

Use setdiff()

Efficiently importing data into a table based on a matching column value

Use setdiff()

5 months ago | 0

Answered

How can i solve this differential equation by the method of finite difference approche?

There are a few different ways and builtin functions by which your 2nd order BC ODE exercise, e.g.: bvp4c, bvp5c, deval. DOC ...

How can i solve this differential equation by the method of finite difference approche?

There are a few different ways and builtin functions by which your 2nd order BC ODE exercise, e.g.: bvp4c, bvp5c, deval. DOC ...

5 months ago | 0

Answered

How to perform arithmetic operation on sparameters?

There is a small error in your script. Here is the corrected one: hR1 = resistor(50,'R50'); hckt1 = circuit('example2'); add(...

How to perform arithmetic operation on sparameters?

There is a small error in your script. Here is the corrected one: hR1 = resistor(50,'R50'); hckt1 = circuit('example2'); add(...

5 months ago | 0

| accepted

Answered

Why cant I do the simulink fundimentals course on desktop

To use a desktop version of the tutorial, your MATLAB/Simulink package has to be R2022a or later. Otherwise, you would need to u...

Why cant I do the simulink fundimentals course on desktop

To use a desktop version of the tutorial, your MATLAB/Simulink package has to be R2022a or later. Otherwise, you would need to u...

5 months ago | 0

Answered

How to perform linear curve fitting based on distance from line instead of residuals

You can try a scaling factor here. Your data seems to be within [355 365]; thus, take out 355 from x and then perform the linear...

How to perform linear curve fitting based on distance from line instead of residuals

You can try a scaling factor here. Your data seems to be within [355 365]; thus, take out 355 from x and then perform the linear...

5 months ago | 0

Answered

Read a matrix between elements

One of the possible solutions can be using cell array to define the indices, something like this way: INDEX = {1:1000, 4000:500...

Read a matrix between elements

One of the possible solutions can be using cell array to define the indices, something like this way: INDEX = {1:1000, 4000:500...

5 months ago | 0

Answered

Help ME ! Error in feature input layer in CNN, Number of observations in X and Y disagree

As I see in your code the X and Y have mismacthed sizes: inputs = inputs'; % size : 18000*10 targets = targets'; % size : 1800...

Help ME ! Error in feature input layer in CNN, Number of observations in X and Y disagree

As I see in your code the X and Y have mismacthed sizes: inputs = inputs'; % size : 18000*10 targets = targets'; % size : 1800...

6 months ago | 0

Answered

matrix points from a plot

What you are trying to attain is to display the found max value and depth location to be displayed in the simulation order: ......

matrix points from a plot

What you are trying to attain is to display the found max value and depth location to be displayed in the simulation order: ......

6 months ago | 1

Answered

I have three coupled differential equation and need help to solve them

Your given exercise is a type of implicitly defined ODEs and thus, you should employ ode15i - see this doc.

I have three coupled differential equation and need help to solve them

Your given exercise is a type of implicitly defined ODEs and thus, you should employ ode15i - see this doc.

6 months ago | 0

Answered

plotting linear differential equations and using a bode plot for amplitude and frequency

It is a quite straightforward exercise and no need to solve for an analytical solution. Convert to "s" domain (Laplace transform...

plotting linear differential equations and using a bode plot for amplitude and frequency

It is a quite straightforward exercise and no need to solve for an analytical solution. Convert to "s" domain (Laplace transform...

6 months ago | 0

| accepted

Answered

How can i determine the area below a plotted graph?

If understood your question correctly, this is what you're trying to compute is the area under the big bell curve? A=[ 0.6495 ...

How can i determine the area below a plotted graph?

If understood your question correctly, this is what you're trying to compute is the area under the big bell curve? A=[ 0.6495 ...

6 months ago | 0

| accepted

Answered

How to import and read several large csv in matlab

If your data file names are sequential, then you may consider using this type of approach here: FILE = fullfile('C:\Users\...',...

How to import and read several large csv in matlab

If your data file names are sequential, then you may consider using this type of approach here: FILE = fullfile('C:\Users\...',...

6 months ago | 0

| accepted

Answered

I want to access multiple excel files from multiple folders and extract specific cell values.

You may consider using this kind of approach: MY_Folder= '...\MATLAB'; % Specify your folders where your dat...

I want to access multiple excel files from multiple folders and extract specific cell values.

You may consider using this kind of approach: MY_Folder= '...\MATLAB'; % Specify your folders where your dat...

6 months ago | 0

Answered

Using date and time in MATLAB

(1) Import data into MATLAB: DB = readtable('YOUR_MS_Excel_Data.xlsx', 'Sheet', 'LoadProfile&Tariff', 'Range','A2:B38'); (2) C...

Using date and time in MATLAB

(1) Import data into MATLAB: DB = readtable('YOUR_MS_Excel_Data.xlsx', 'Sheet', 'LoadProfile&Tariff', 'Range','A2:B38'); (2) C...

6 months ago | 1

Answered

fixed point taylor sine/cosine approximation model

WHy not to use matlab's built-in taylor() expansion fcn: https://www.mathworks.com/help/symbolic/sym.taylor.html?s_tid=doc_ta ...

fixed point taylor sine/cosine approximation model

WHy not to use matlab's built-in taylor() expansion fcn: https://www.mathworks.com/help/symbolic/sym.taylor.html?s_tid=doc_ta ...

6 months ago | 0

Answered

can anyone will help me please? i want a barcode detection code? Please....

Use matlab's built-in fcn readbarcode(): https://www.mathworks.com/help/vision/ref/readbarcode.html

can anyone will help me please? i want a barcode detection code? Please....

Use matlab's built-in fcn readbarcode(): https://www.mathworks.com/help/vision/ref/readbarcode.html

6 months ago | 0

Answered

Warning: Imaginary parts of complex X and/or Y arguments ignored.

from your problem statement, your calculation results a, b and amean, bmean contain some complex values. Thus, plot() fcn plots ...

Warning: Imaginary parts of complex X and/or Y arguments ignored.

from your problem statement, your calculation results a, b and amean, bmean contain some complex values. Thus, plot() fcn plots ...

6 months ago | 0

Answered

How to cite MATLAB??

Here is one good source in addition to what Rik has proposed. E.g.: MATLAB. (2022a). Natick, Massachusetts: The MathWorks Inc....

How to cite MATLAB??

Here is one good source in addition to what Rik has proposed. E.g.: MATLAB. (2022a). Natick, Massachusetts: The MathWorks Inc....

6 months ago | 0

Answered

How to delete a Matrix in a 3D Matrix?

You are trying to change the size of the matrix that can't be achieved in this way. If you need to find and substitute NaNs with...

How to delete a Matrix in a 3D Matrix?

You are trying to change the size of the matrix that can't be achieved in this way. If you need to find and substitute NaNs with...

7 months ago | 0

Answered

How do I make a figure legend multiple lines?

This one is a better solution that is easier to implement: plot(sin(1:.1:10),'r', 'DisplayName', 'Cosine'), hold on plot(cos(1...

How do I make a figure legend multiple lines?

This one is a better solution that is easier to implement: plot(sin(1:.1:10),'r', 'DisplayName', 'Cosine'), hold on plot(cos(1...

7 months ago | 3

Answered

finite element for 1d poisson equation

You can employ matlab's PDE toolbox fcn pdepe(). How to use it: doc pdepe Also, you can find some good help in this DOC.

finite element for 1d poisson equation

You can employ matlab's PDE toolbox fcn pdepe(). How to use it: doc pdepe Also, you can find some good help in this DOC.

7 months ago | 0

Answered

Image analysis for Signal processing help

Using the Discrete Cosine Transform is quite straightforward. You'd need to employ dctmtx() fcn. Help documentation: doc dct...

Image analysis for Signal processing help

Using the Discrete Cosine Transform is quite straightforward. You'd need to employ dctmtx() fcn. Help documentation: doc dct...

7 months ago | 0

Answered

Image analysis for Signal processing help

Use imcrop() How to use this function: >> doc imcrop

Image analysis for Signal processing help

Use imcrop() How to use this function: >> doc imcrop

7 months ago | 0

| accepted

Answered

Perform fminsearch to find the best value for the variable in a model

One pranthesis was missing: ... for ii = 1:numel(Imeas) Itheory = @(Ro)(Imeas(ii)*exp(-Ro*-2*bet_a*k*2*Ro*(1-(y(ii)/Ro)^2))...

Perform fminsearch to find the best value for the variable in a model

One pranthesis was missing: ... for ii = 1:numel(Imeas) Itheory = @(Ro)(Imeas(ii)*exp(-Ro*-2*bet_a*k*2*Ro*(1-(y(ii)/Ro)^2))...

7 months ago | 0

Answered

How do you obtain the equation of the Adaptation mechanism adjusts in the MRAC PID block?

It is found here: Simscape / Electrical / Control / General Control If your MATLAB/Simulink package has Simscape toolbox. Yo...

How do you obtain the equation of the Adaptation mechanism adjusts in the MRAC PID block?

It is found here: Simscape / Electrical / Control / General Control If your MATLAB/Simulink package has Simscape toolbox. Yo...

7 months ago | 0

Answered

Perform fminsearch to find the best value for the variable in a model

Note the following two points in your code that must be identical and input variable names must match as defined above: Itheory...

Perform fminsearch to find the best value for the variable in a model

Note the following two points in your code that must be identical and input variable names must match as defined above: Itheory...

7 months ago | 0

| accepted

Answered

Keyboard shortcuts are not mapped correctly to different language keyboard

Use preferences options to adjust your keyborad shortcuts, e.g.: >> preferences follow: Preferences -> keyboard -> Shortcuts ...

Keyboard shortcuts are not mapped correctly to different language keyboard

Use preferences options to adjust your keyborad shortcuts, e.g.: >> preferences follow: Preferences -> keyboard -> Shortcuts ...

7 months ago | 0

Answered

How to detect rotation in a trajectory?

One way of detecting the region of values is using logical indexing, e.g.: t = ... x = ... y = ... % Way 1 Ind = t>=0 &...

How to detect rotation in a trajectory?

One way of detecting the region of values is using logical indexing, e.g.: t = ... x = ... y = ... % Way 1 Ind = t>=0 &...

7 months ago | 1

Answered

Perform fminsearch to find the best value for the variable in a model

There are a couple potential of errs in your code. (1) Ifunc fcn has to have two more input variables, viz. bet_a, k and thus, w...

Perform fminsearch to find the best value for the variable in a model

There are a couple potential of errs in your code. (1) Ifunc fcn has to have two more input variables, viz. bet_a, k and thus, w...

7 months ago | 0