已回答
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...

8 months 前 | 0

已回答
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...

8 months 前 | 0

| 已接受

已回答
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...

8 months 前 | 0

已回答
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) ...

8 months 前 | 0

已回答
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...

8 months 前 | 0

已回答
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...

8 months 前 | 0

| 已接受

已回答
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...

8 months 前 | 1

已回答
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...

8 months 前 | 1

已回答
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...

8 months 前 | 0

| 已接受

已回答
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...

8 months 前 | 1

| 已接受

已回答
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 ...

8 months 前 | 0

已回答
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 =...

8 months 前 | 0

| 已接受

已回答
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 ...

8 months 前 | 0

已回答
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...

8 months 前 | 0

已回答
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...

8 months 前 | 0

已回答
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.

8 months 前 | 0

已回答
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),...

8 months 前 | 1

| 已接受

已回答
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) ...

8 months 前 | 0

| 已接受

已回答
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...

8 months 前 | 0

已回答
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...

8 months 前 | 1

| 已接受

已解决


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

8 months 前

已解决


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

8 months 前

已回答
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...

8 months 前 | 0

已回答
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...

8 months 前 | 0

已回答
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...

8 months 前 | 1

已回答
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.

8 months 前 | 0

已回答
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...

8 months 前 | 0

| 已接受

已回答
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...

8 months 前 | 0

已回答
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...

8 months 前 | 0

| 已接受

已回答
newton raphson methon and symbolic functions
Here is another alt. solution: R=3; h=0:0.1:6; V=pi.*h.^2.*(3*R-h)/3; plot(h,V,'k'); IDX = find(ceil(V)==30); hold on plo...

8 months 前 | 0

加载更多