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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 1

| aceptada

Respondida
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) ;

más de 3 años hace | 2

Respondida
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) ; ...

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 1

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

más de 3 años hace | 1

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

más de 3 años hace | 1

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

más de 3 años hace | 1

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

más de 3 años hace | 0

| aceptada

Respondida
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)

más de 3 años hace | 2

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 2

| aceptada

Respondida
'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=...

más de 3 años hace | 1

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

más de 3 años hace | 2

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

más de 3 años hace | 1

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 1

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 1

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

más de 3 años hace | 1

Respondida
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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 2

| aceptada

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

más de 3 años hace | 0

Cargar más