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

3 years ago | 1

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 2

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

3 years ago | 1

| accepted

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

3 years ago | 1

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

3 years ago | 1

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

3 years ago | 1

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

3 years ago | 1

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

3 years ago | 0

| accepted

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

3 years ago | 2

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

3 years ago | 1

| accepted

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

3 years ago | 0

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

3 years ago | 2

| accepted

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

3 years ago | 1

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

3 years ago | 2

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

3 years ago | 1

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

3 years ago | 1

| accepted

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

3 years ago | 1

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

3 years ago | 1

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 1

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

3 years ago | 1

Answered
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

3 years ago | 1

| accepted

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

3 years ago | 0

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

3 years ago | 1

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 0

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

3 years ago | 2

| accepted

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

3 years ago | 0

Load more