Answered
How to select which parameters will be optimized in a model?
If you are considering few other cases, it would be necessary to consider which parameters to be optimized and which one to be l...

12 months ago | 0

Answered
Values within a cell array must be numeric, logical, or char
Which line is causing the issue? In this example, all steps of converting struct - 2 - table and table - 2 - cell are working o...

12 months ago | 0

Answered
How to import data (text and numbers) from a tabuled .dat file in MATLAB?
It is reading ok: % *.data can be uploaded and thus, .txt file format is taken. Both works % table0 = readtable('Mechanism.dat...

12 months ago | 0

| accepted

Answered
error in line 15 at initial conditions please help
This is how the code should be put together and executed: % Initial conditions initial_conditions = [pi/4; 0]; % Solve the OD...

12 months ago | 0

Answered
Figures generated in Live Script are displayed as old plots with same figure(n)
Using figure command between the plots solves this ambiguity. a= 1:10; b=rand(10,1); c=rand(10,1)+5; figure plot(a,b,a,c) ...

12 months ago | 0

Answered
Need support in Matlab for signal processing can anybody ne help me in completing my lab works. works
If you have not visited to the MATHWORKS documentation and help library of the Signal Processing toolbox, here is one good start...

12 months ago | 0

Answered
Interpolation via Zero Padding
Is this what you are trying to get: N = 30; x = (0:N-1)/N; Ni = 5 * N; % By a factor "5" xi = (0:Ni-1)/Ni; f = exp(sin...

12 months ago | 0

| accepted

Answered
How do I get the area of a zone covered by disconnected blobs in an image?
It will be somewhat like this one: close all; clearvars % Image Import: I = imread('Chip_image.png'); % Grayscale Conversio...

12 months ago | 1

Answered
desktop real time ,analog output,pci-6289 ,'device not failed'
These are the general steps on how to address the problem arised in this exercise: 1. Yes, an appropriate driver for your PCI-6...

12 months ago | 1

Answered
How to calculate the latitudinal and longitudinal coverage of the area of the circle that subtends an angle of 4 degree at the location on the surface of the Earth?
It is something like this way: % Given Data: centerLatLong = [-11.9459279123647, -76.84862390044384]; % Latitude and Longitud...

12 months ago | 0

| accepted

Answered
Filter rows and columns with datas (find)
In this case, the combined filter data should be used: [LonIndex, ~] = find(any(combined_filter, 2)); [~, LatIndex] = find(any...

12 months ago | 1

| accepted

Answered
excel-like formula column
If understood correctly, this is what you are trying to achieve, e.g.: % Initialize a matrix with two columns of data (Morning ...

12 months ago | 0

Answered
how to get data(u,v,w) corresponding to spicific x ,y ,z in 3D quiver in matlab?
if the quiver3() plot figure is obtained/saved, the data can be extracted, e.g., fig = openfig('Q3.fig'); fig = gcf; axObjs =...

12 months ago | 0

| accepted

Answered
eigs function works slowly
Note that eigs() is NOT computationally efficient and thus, eig() can be employed instead, e.g., A = randi(250, 100); options ...

12 months ago | 0

Answered
Inputs and targets have different numbers of samples
Without seeing your data, a couple of points: (1) Why you are selecting the data sets for model training, validation and testin...

12 months ago | 0

Answered
How can I get multiple values from a formula where the inputs are based on an array?
I really wonder why my submitted asnswer disappeared. The system has some failures. This is the answer that I submiited yesterda...

12 months ago | 0

Answered
How can I adjust the setting of analog signal sampling with STM32 using Matlab Simulink.
Increase data sampling rate, e.g., 2.5kHz or higher and re-collect your data. It will solve the problem.

12 months ago | 0

Answered
recreating in matlab Butterworth Filter filter response
Here is the complete corrected code (figure 2 is from your code which is correct): w1 = 20.01; w2 = 24.36; H1=tf(1,[1/(w1^4),...

12 months ago | 1

| accepted

Answered
Renaming data to create legend for figure ploting
It can be attained using legend() command, e.g.: A = randi([-5 25], 5, 13); B = 1:size(A,2); plot(B,A, '-o', 'linewidth', 2) ...

12 months ago | 0

| accepted

Answered
How can i upload this raw format image in the matlab?
These are common procedures: (1) Image import / read by MATLAB: imread() (2) Image export in whatever format: imwrite() or sav...

12 months ago | 0

Answered
HOW can I export table in latex outside to desktop?
Just to write or export imulation date from MATLAB into external application can be attained with writetable(), e.g.: run('tabl...

12 months ago | 1

| accepted

Solved


Golomb's self-describing sequence (based on Euler 341)
The Golomb's self-describing sequence {G(n)} is the only nondecreasing sequence of natural numbers such that n appears exactly G...

12 months ago

Solved


MatCAT - Reconstruct X from Its X-rays
Consider a matrix x x = [ 1 2 0 0 5 0 3 0 8 ] If we sum x along the rows we get row_sums = [3 5 11] ...

12 months ago

Answered
Trained svm model can't make predictions with new data
Presuming that you are working with fitrsvm() for regression model development, e.g., % E.g. Data for model training: x_train...

12 months ago | 0

Answered
Identifying smoothness on different plots without jumps or kinks
For f1.txt, the model formulation will be the best fit, e.g.: D1 = load('f1.txt'); X1 = linspace(-25, 25, numel(D1)); % Dat...

12 months ago | 0

Answered
I have a problem with 2D plot.
It should also work with this syntax X1=[300 400 500 600]; X2=[4 3.5 3.0 2.5]; Y=[0.3 0.4 0.5 0.6]; t = figure(1); ax1 = ax...

12 months ago | 1

Answered
Mismatch result in comparison operation in Simulink
The problem is caused by sine wave generator. Try to tighten the sample time, e.g. 1e-9.

12 months ago | 0

Answered
Identifying smoothness on different plots without jumps or kinks
Here is one solution with ftnlm(): D2 = load('f2.txt'); X2 = linspace(-25, 25, numel(D2)); % Data shows that a Nonlinear Sigm...

12 months ago | 0

| accepted

Answered
I want to do a general code to make a transfer function of any rlc circuit
The transfer function of RLC circuit will be derived using input voltage vs. voltage across capacitor (1) or input voltage vs. c...

12 months ago | 0

Answered
I have a problem with 2D plot.
Here is one possible solution: X1=[300 400 500 600]; X2=[4 3.5 3.0 2.5]; Y=[0.3 0.4 0.5 0.6]; t = tiledlayout(1,1); ax1 = a...

12 months ago | 0

| accepted

Load more