Beantwortet
How do I make a 3D surface from table data?
Use the scatteredInterpolant function to generate the ‘Z’ matrix — T1 = readtable('Table Matlab surface.xlsx', 'VariableNaming...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
Cannot extract real or imag part of a function
You are taking the real and imag parts of a function handle. It is necessary to evaluate the function handle first. Try thi...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
toggle percentual from matrix
Perhaps this — per=5; a=magic(4) apr = a*(1-0.05) % 95% Of The Value apr = a*0.05 ...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
Why I knock into a error when I want to get data from my double?
In ‘PCI1’ you are referencing ‘R’ however you are not passing it to ‘PCI1’ as an argument. Perhaps this — R = [[1 0.9954 0...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
Unexpected flat surface with surf command
I do not completely understand the problem, however: [X, Y] = meshgrid(sort(x), sort(Dp_values)); could solve the problem. ...

fast 3 Jahre vor | 0

Beantwortet
4 equation 2 solution
Since ‘Phi’ and ‘L3’ are not defined, I created them (and ‘Alpha’) as parameters to be estimated hiere. I am not certain wh...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
for loop with fminsearch
There is a typographical error: for i=1;100 ↑← HERE Change that to a colon and it works — %I couldnt make array v...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do use the annotation function to annotate specific x-values on my graph?
I wrote a couple anonymous functions recently to transform (x,y) coordinates to normalised coordinates for just this purpose. ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Can't get symbolic numbers.
The sympref function should work, specifically: sympref('FloatingPointOutput',false); or: sympref('FloatingPointOutput','de...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
Combining multiple matrices into a single vector
A single vector is not possible, however a 3D array is with the cat function — T1 = [2 3; 4 2]; T2 = [1 7; 9 ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can I change an entire column of dates into datetime format?
It appears to be UCT (or GMT in 1940). Perhaps this (the 'InputFormat' descriptor must match the format of the string you wan...

fast 3 Jahre vor | 0

Beantwortet
How to stack-up multiple cases in z axis?
clc clear x(1) = 0 ; y(1) = 0 ; zm = NaN(2,200); multiplier = 50 ; figure(1) hold on for i1 = 1:2 multi...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to fill color between two curves?
If you only want the region between the curves before or after they cross, use ‘logical indexing’. Try this — % clc % clea...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to correctly do a Student Test for atmoshperic data
I’m not certain what you’re doing. I would use ttest2 on the filtered and unfiltered events themselves (since that is how ttest...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to edit y-axis scale in pop_spectopo function to log power spectral density 10*log10(uV^2/Hz)
This ‘10*log10(uV^2/Hz)’ is the same a dB/Hz. Thi is the same as the units of the ‘pxx’ outputs of the pwelch and periodogram f...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
nonlinear regression for multiple variable parameter
Your code works. The only change required was to create the ‘pressure_Keq’ matrix as the independent variable and then change ‘...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
I need help graphing a function.
It probably should be a decaying sinusoid. The problem is that it decays too fast. Decreasing the magnitude of ‘t’ helps to ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Find least frequent value in an array
One approach — H = [1 1 2 2 3 3 4 5 5 5]; [Hu,~,uidx] = unique(H, 'stable'); [Out,idx] = min(accumarray(uidx,(1:numel(uidx))...

fast 3 Jahre vor | 0

Beantwortet
Convert array of numbers to an array of padded strings
Use the compose function — stanums = 7:12; stastrings = compose("%02d", stanums) Note the format descriptor string. .

fast 3 Jahre vor | 0

Beantwortet
How to filter a certain range of values
I am not certain what you mean by ‘filt’ since I do not know if you want to keep those values or exclude them. M1 = readmatr...

fast 3 Jahre vor | 0

Beantwortet
Distance between 2 curves from one point
Using interp1 — % Gegebene Daten x = [29.069, 44.395, 59.528, 74.76, 90.036]; y = [0.07091, 0.076187, 0.081665, 0.087588, 0....

fast 3 Jahre vor | 0

Beantwortet
Graphics from 2D data
It would be nice to have ‘x’ since I suspect that ‘x(:,1)’ cycliically repeats. Using reshape to use the cyclic repeat informat...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Bar plot with lower values not fixed
Use the patch function in a loop — x = (1 : 9).'; % Assume Column Vec...

fast 3 Jahre vor | 2

| akzeptiert

Beantwortet
How to make column vector from existing column vector
Perhaps create a second table. Tzoomed = T(1:1000,:) Then refer to it as you would the original ‘T’ with respect to its var...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
My graph is not picking up my time increments, its suppose to have a nice curve, but its coming out as a straight line.
Vectorised version — clear Ts=30; % ms Td=60; % ms Chs=.001; % L/mmhg Chd=.015; % L/mmhg N=800; % number of elements t=0...

fast 3 Jahre vor | 1

Beantwortet
How to plot circular phase in planar axis without lines going from ymin to ymax when data goes from -pi to pi?
I am not certain what result you want. The phase plots appear to be radian measure and otherwise relatively continuous, so see ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
I'm trying to make a for loop that has if statments that use the increments from my i to run them. How can I make this work, it won't run.
It runs. For equalities such as you are using, use the any function. Try this — Ts=30; % ms Td=60; % ms sc=10^-3; % con...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
Cannot create .txt file in Matlab online
I am not certain what the problem is. Using fopen only creates the file ID, as you discovewred. To write the file, you need ...

fast 3 Jahre vor | 0

Beantwortet
extract audio features from music
The spectralCentroid function was introduced in R2019a. You need to have that or a later release to be able to use it.

fast 3 Jahre vor | 0

Beantwortet
MATLAB R2023a unusable on brand new desktop computer
Use Windows Task Manager and Resource Monitor to see what else is running and what resources are being used. Also R2023b is c...

fast 3 Jahre vor | 0

Mehr laden