답변 있음
How to use importdata to import the data from a csv file
Read about readtable.

3년 초과 전 | 1

답변 있음
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년 초과 전 | 1

| 수락됨

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

3년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 2

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 1

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

3년 초과 전 | 1

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 2

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 2

| 수락됨

답변 있음
'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년 초과 전 | 1

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

3년 초과 전 | 2

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
Is there any Matlab function to perform EEMD, CEEMD, MEMD?
REad about emd

3년 초과 전 | 1

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

3년 초과 전 | 1

| 수락됨

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

3년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

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

3년 초과 전 | 1

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

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

3년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
read csv chart file in to matlab
T = readtable('myfile.csv') ;

3년 초과 전 | 0

답변 있음
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년 초과 전 | 2

| 수락됨

더 보기