Beantwortet
Unidentified variable or function of x
function x=cake(p,q,x) a=diff(p,x) b=diff(q,x) c=exp(-1*int(p,x)) p2=diff(((a+b)*c),x)/((a+b)*c) q2=((a+b*c)*(-c)) r2=...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How do I merge squares
T= [1 2 3 4 5 6] ; iwant = num2cell(T,2) ; iwant{1} iwant{2}

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
I don't know how to code this number triangle
n = [1 11 111 1111 11111 111111 1111111]; for i = 1 : length(n) x = num2str(n(i)^2); s = [blanks(length(n)-i) x]; ...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Hi, I have data of temperature that need normalized, subtract by the mean temperature and divide by its standard deviation
If T is your array; just do: T_normalized = (T-mean(T))/std(T) ;

mehr als 3 Jahre vor | 2

Beantwortet
How to define plane in 3d cube. Intersection point of segment with plane in 3d cube
You define p0, p1, p2 and p3 as matrix arrays. function [I] = check_planes(x0,x1) p0 = zeros(1,3,6) ; p1 = zeros(1,3,6) ; ...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Error using + Matrix dimensions must agree., can someone help me?
clear all; [Y,Fs] = wavread('here.wav'); Fs = 16000;%nilai default Fs=16000 %sound(Y,Fs) noise = randn(size(Y)); Y_noise = ...

mehr als 3 Jahre vor | 1

Beantwortet
How to read a table.txt from series of folders?
This question is asked multiple times. You may refer links: https://in.mathworks.com/matlabcentral/answers/401204-how-do-i-read...

mehr als 3 Jahre vor | 1

Beantwortet
aviread MATLAB function not found
It is not an inubilt function. Download the function from here: https://in.mathworks.com/matlabcentral/fileexchange/18559-avire...

mehr als 3 Jahre vor | 1

Beantwortet
Convert a struct with multiple fields into spreadsheet
REad about struct2table. After conversion write it into excel/ spreadsheet using writetable.

mehr als 3 Jahre vor | 1

Beantwortet
how to find f(x) when f(1) is given
g'(x) would be: g'(x) = f'(x)/x^3-3*f(x)/x^4 ; % remember uv rule So in the above substitute the given values: g' = 4/1^3-3...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to combine 2 function handles of different variables?
mu = @(n, dmu, mubar) mubar + n*dmu/4; f = @(t, mu) cos(2*pi*mu*t); fmu = @(x) f(mu)

mehr als 3 Jahre vor | 2

Beantwortet
How to find minimum value and its corresponding variables for a large dataset?
You need to initialize the variable Resuls for faster run. Check the below: H1=10; gamma=18; phi=30; count = 0; Results = z...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Error: "filename" must be a string scalar or character vector.
Change this line [upperDir subDir 'n' num2str(i) '.txt'] to [upperDir,filesep,subDir,filesep,'n',num2str(i),'.txt'] Also ...

mehr als 3 Jahre vor | 0

Beantwortet
Concatenate multiple matrices by 3rd dimension using 'for' loop (considering a specific variable in netCDF files)
Folder = 'C:\Users\Matlab1\ncfiles'; Patternoffiles = fullfile(Folder, '*.nc'); ncfiles = dir(Patternoffiles); n = length(nc...

mehr als 3 Jahre vor | 2

| akzeptiert

Beantwortet
'Write a code to plot stresses in x, y plane' Airy's stress function was given and solved for the variables. I just don't know how to plot the sigma x,y and tau xy.
L=10; h=1; P=20; t=(3/12); x = linspace(0,L) ; y = linspace(0,L) ; [X,Y] = meshgrid(x,y) ; %Finding Constants a=...

mehr als 3 Jahre vor | 1

Beantwortet
Change color in 3d graphic scatter3
You need to provide the color data. a = scatter3(xdata,ydata,zdata,[],zdata,'filled'); colorbar

mehr als 3 Jahre vor | 2

Beantwortet
Connecttwo lines of code to one
t1 = datetime('now','TimeZone','local','Format',' HH:mm:ss ') ; t2 = datetime('now','TimeZone','local','Format',' HH:mm:ss ') ;...

mehr als 3 Jahre vor | 1

Beantwortet
how can i load multiple/all audio files(.wav) in matlab ? all files have different names.
audioFiles = dir('*.wav') ; N = length(audioFiles) ; for i = 1:N file - audioFiles(i).name ; % do what you want e...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Is there any Matlab function to perform EEMD, CEEMD, MEMD?
REad about emd

mehr als 3 Jahre vor | 1

Beantwortet
How to fill arrays third column by matching first 2 columns
A=[1 5 0; 1 12 0; 4 5 0; 4 9 ...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How to save set of images as logical images (0 and 1)
Try converiting logicals into double using double.

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How to find the timestep in ode45?
Alreay you have time in T. When you gave [0:time], the timestep is 1. You may provide your required time difference dt, using: ...

mehr als 3 Jahre vor | 1

Beantwortet
Selecting a line of data from a 3D surface
Very much possible.... Read about interp2. Also have a look on improfile.

mehr als 3 Jahre vor | 1

Beantwortet
How to define point between two points in one line through function or any algorithms
Have a look on this: https://in.mathworks.com/matlabcentral/fileexchange/17751-straight-line-and-plane-intersection

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
form in separate table from text file
a = [5 0 0.0123 0.232 0.252 5 2 0.326 0.325 0.325 5 4 0.256 0.145 0.369 6 ...

mehr als 3 Jahre vor | 0

Beantwortet
How to run and save variables in a structures?
run('filename.m') S = whos ; save('Test.mat','S')

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
how can get the summation of element in the table
You can save the variables inside the for loop into an array and later you can do the operations you want. See the below example...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
read csv chart file in to matlab
T = readtable('myfile.csv') ;

mehr als 3 Jahre vor | 0

Beantwortet
How to increase the clarity of a heat map? Or increase the interpolate point for drawing a heatmap?
Read about imresize. Also have a look on interp2.

mehr als 3 Jahre vor | 2

| akzeptiert

Beantwortet
How to manage NaNs in responses training a convolutional neural network?
You can fill NaN's using either fillmissing, interp2. Also have a look on the fileexchange: https://in.mathworks.com/matlabcentr...

mehr als 3 Jahre vor | 0

Mehr laden