Beantwortet
How to replace two symbolic variables with two (1x3) arrays and result in a (1x3) array?
There are a few different ways to get it done. One of the possible ways is the next one: % r and s arrays that will replace x a...

mehr als 3 Jahre vor | 0

Beantwortet
How to align multiple signals?
One fundamental question for signal processing is a "must", that is "what is the data sampling time or sampling frequency?" Pl....

mehr als 3 Jahre vor | 0

Beantwortet
How can I increase the size of matrices in cell arrays with each iteration of a loop?
There are a few different ways to create such as cell array. If to get it done in a loop: rng(1) % To replicate at any time an...

mehr als 3 Jahre vor | 0

Beantwortet
How do I create a transfer function of a high order
It can be done this way: s = tf('s'); G = (14.14*s^2 + 318.2*s + 707) / ((s^2 +20*s+101)*(100*s+1)*(0.2*s^2 + 1.2*s+1)) % Sim...

mehr als 3 Jahre vor | 0

Beantwortet
invalid use of operator
The corrected syntax of this is: function out = modfunc(x,a); out = a(1)*exp(a(2)*x);

mehr als 3 Jahre vor | 0

Beantwortet
How can I set the AWGN simulink block to get like this m-file setting >>> awgn(x,SNR,'measured');
One of the possible ways of attaining this is to use MATLAB Fcn block and edit the MATLABV fcn. See the attached simple Simulink...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can I plot this date time graph?
Here is how you can get the plot: load('Years.mat') N = numel(Climatology.HeightSeries); plot(1:N,Climatology.HeightSeries), ...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
phase portrait error when run
Here is the corrected code: clc; clear figure1=figure; axes1=axes('Parent',figure1,'FontSize',13); grid on; box(axes1,'on')...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
x values when taking a numerical derivative
There will be some significantly different results from diff() and gradient() if the increment of x varies. See this simulation:...

mehr als 3 Jahre vor | 0

Beantwortet
reading an combining excel files
There are a few different ways to get this task done. One of them is this one if your data files have the same number of numeric...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Convert Mat files to csv files
It can be done in three major steps: Step 1. Load data from *.mat file FN = input('Enter *.mat file name: ', 's'); D = load(...

mehr als 3 Jahre vor | 0

Beantwortet
x values when taking a numerical derivative
Yes, you are right, e.g.: x = [0 .2 .3 .45 .65 .75 .96] y = [-3 10 11 12 13 12 9] dydx = diff(y)./diff(x) yyaxis left ...

mehr als 3 Jahre vor | 0

Beantwortet
Error when importing data
Use one of these functions - readmatrix(), readtable(), readcell(), which are recommended. They are efficient and easy to handle...

mehr als 3 Jahre vor | 0

Beantwortet
Code for frequency of a number of bins
This is how you can plot hist() or histogram(), e.g.: D = round(100*(randn(1000, 1)),0)+375; figure hist(D, max(D)) figur...

mehr als 3 Jahre vor | 0

Beantwortet
How to find a gap in a table
If understood your qyestion correctly, you are trying to remove the rows of data in any row there is a missing data. If so, use:...

mehr als 3 Jahre vor | 0

Beantwortet
can anyone please tell me what is this block
From you provided image, it looks a subsystem. The subsystem components can be adjusted using parameter values. Building a subsy...

mehr als 3 Jahre vor | 0

Beantwortet
Count number of sheets in excel file
It is recommended to use: sheetnames() instead of xlsfinfo(), e.g.: clearvars D = uigetdir(pwd, 'Choose a folder to import XLS...

mehr als 3 Jahre vor | 0

Beantwortet
what is the most efficient way to write multiple plots to the local drive?
In terms of time efficiency, exportgraphics() is faster than saveas().

mehr als 3 Jahre vor | 0

Beantwortet
Area under the Peak
Here is the corrected code; clearvars; clc load('data.csv') X = data(:,1); Y = data(:,2); plot(X,Y) findpeaks(Y,X,'MinPe...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do I convert ERA Interim precipitation to get total precipitation in area?
Here is how to compute annual and weekly averages of the data given in nc file. unzip('ep1.zip') vardata=ncread('ep1.nc', 'tp'...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to display specific values in xticks?
Here is the corrected code: clearvars; clc;close all; figure; clf('reset'); %data1=[0.0982000000000000 0.10000000000000...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Remove page numbers from extractFileText
If the file to be imported is uniformly page numbered, then its page numbers can be detected and removed using the fcn - detecti...

mehr als 3 Jahre vor | 0

Beantwortet
How to load multiple input txt file in matlab?
For your exercise, if your data files contain the same data type in terms of columns, then you can use this code to collect all ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
3D Image Rotation Problem
You can try pagetranspose() function: HH = membrane; tiledlayout(2,1) nexttile surfc(HH) HR = pagetranspose(HH); nexttile ...

mehr als 3 Jahre vor | 0

Beantwortet
How to save a Figure to a PNG File
Here are two different ways how you can save the plot figure output in .png: F = @(t)exp(sin(2*t)); fplot(F, [-pi, pi]) grid ...

mehr als 3 Jahre vor | 0

Beantwortet
Unable to plot a graph
Here is the corrected complete code: clearvars syms lambda Z_L = 25; Z_C = 50; z_L = Z_L/Z_C; y=@(lambda)(Z_C*((z_L+1i*t...

mehr als 3 Jahre vor | 0

Beantwortet
I would like to add different colors in an interactive geobubble graph
Here is the code that shall give different colors: % Read data from Excel file and create Table in matlab t = readtable("fil...

mehr als 3 Jahre vor | 0

Beantwortet
cannot exporting high resolution video?
Try this function: exportgraphics() See DOC

mehr als 3 Jahre vor | 0

Beantwortet
How to read data from a Excel file and insert data within each sheet in a already created cell array
This is how it can be attained: load('Test.mat') % FName ='Test.xlsx'; S_names = sheetnames(FName); for ii=1:n...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
help to find error in this?
Here is the corrected code. But you need to check your Jacobian matrix formulations; otherwise, this exercise is not solvable: ...

mehr als 3 Jahre vor | 1

| akzeptiert

Mehr laden