Réponse apportée
How to convert one column of a table into numeric data type corresponding to the other column of the same table?
If you have a table T with field names genre and runtime, then genre = {'ab','a','a','o','abo'}'; runtime = [11,12,13,14,45]';...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
splitting cell array consists of string and numeric characters
Use replace S = {...}; % your n*1 cell array S = arrayfun(@(i)replace(S{i},'*',''),1:1:numel(S),'uniform',false);

environ 4 ans il y a | 1

| A accepté

Réponse apportée
What should I do?-Array indices must be positive integers or logical values.
Hi, g(i,j) may be zero, then m becomes zero. change it like this clc clear close all a=imread('Screenshot_20210628.jpg'); ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Find an equation of the tangent to the curve at the point corresponding to the given value of the parameter. x=t√,y=t2−2t;t=4
syms t x0(t) y0(t) x y x0 = sqrt(t); % parametric equation for x y0 = t^2-2*t; % parametric equation for y dx = diff(x0); %...

environ 4 ans il y a | 1

| A accepté

Question


What if in matlab answer, your answer is robbed by the questioner and he accepts only his all by himself
I have encountered more than twice now. In the answer community, after you answered a question, the questioner made a minor corr...

environ 4 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
How to Solve for x for 20 functions
You can get symbolic solution by syms K C V B N X eq = K*(B-X)*(N-X)-(C+X)*(V+X); x = solve(eq, X) and the final process is ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
opening multiple excel files in different location with a loop
Try following code % Input number of sites N = input('Number of Location? ', 's'); N = str2double(N) % Loop to read all file...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Install Curve Fitting Toolbox
Do following steps

environ 4 ans il y a | 9

| A accepté

Réponse apportée
How to include current array from multiple for loops into csvwrite filename
Hi, try this command instead csvwrite([num2str(lat),'_',num2str(lon),'.csv'], csvdata)

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Can I use the movmean function for a time series?
timeseries不支持movmean呢,可以把对其下面的data做操作,比如 ts = timeseries((1:5)',[0 10 20 30 40]); a = movmean(ts.Data,2);

environ 4 ans il y a | 0

Réponse apportée
How do shade different area with specific y interval
Hi, Wan-Yi Chiu I add three more code lines after your code, then it works. clear x = 0:0.01:9; y = sqrt(x); y0 = y(end:-1...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Interpolating [X Y Z V] values on cylinder surface
Actually, scatteredInterpolant function is easy to implement what you think. function plot3D(x,y,z,v,m) % scatter3(x,y,z); Tm...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Matlab online does not save my work.
When you use matlab online to save data, all the data will be instored on this website, please check by clicking matlab driver.

environ 4 ans il y a | 0

Réponse apportée
I want to cut/crop an RGB image and paste it on different location in another image
I will show you how to copy Part of image A to a certain position of image B clc;clear A = imread('Lena.jpg'); A = imresize(A...

environ 4 ans il y a | 0

Réponse apportée
2d Unsteady state heat conduction equation using Gauss-seidel method
Hi, Rajat Powade I have checked your code carefully and I know you have used the 5-point Gauss-Seidel difference method to obta...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to add column (after multiplication) in file imported from excel
Then if you have new column named newColumn previousTable = readtable('...'); newTable = [previousTable, table(newColunm)]; w...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to write following equation with "dsolve" command?
Hi, That means There is no symbolic solution for the differential equation you give.

environ 4 ans il y a | 0

| A accepté

Réponse apportée
how to swap some vector value?
A general answer is S = 1:100; % count = 1; copyLength = 2; % copyStep = 10; % copyStep>copyLength while count<=numel(S)-co...

environ 4 ans il y a | 0

Réponse apportée
Random values in timetable
Do by the following code data = timetable; n=1; for i = 1:5 Time = datetime('now'); Conductivity = rand(1,1); ...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Matrix 'if' statement
If you do not want the loop, then M = 100; N = 100; [j, i] = meshgrid(1:N,1:M); q = i>j; A(q) = i(q); A(~q)=j(~q);

environ 4 ans il y a | 1

Réponse apportée
How to plot a rectangle from a single point ?
Hi, Use rectangle function rectangle('Position',[0,0,2,4]); % [x_left_down_corner, y_left_down_corner, length, width] Use a...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to reference previous value in an array without a for loop?
use i=2:size(data,1); data.Var3(i)=interp1(ref_data.x,ref_data.y,data.Var2(i))-interp1(ref_data.x,ref_data.y,data.Var2(i-1...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
how to find the find the different rows in 2 matrices based on 2 conditions?
% I just try my best to catch your idea by looking at your words, my engish % is not so good but I want to help you with this p...

environ 4 ans il y a | 0

Réponse apportée
How to sort a 3D matrix according to the value of each element?
I think you want make something gif to show how the numbers are sorted? % sort show % show bubbling clc;clear % load('Number...

environ 4 ans il y a | 0

Réponse apportée
How to display the output as table shown below?
You can use a table to achieve the output Node = reshape(permute(z,[1,3,2]),numel(z)/size(z,2), size(z,2)); Nodenumber = char ...

environ 4 ans il y a | 0

Réponse apportée
Read in numbers as text from excel
IF in excel, a number with high precision is not stored with text format, it cannot be read by readcell with string format for h...

environ 4 ans il y a | 0

Réponse apportée
Plotting 4D function
In the finite element analysis, you have the coordinates of nodes and elements for node order. Also, to each node, the attached ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
High dimension matrix summation: a + b != b + a
It is a problem of machine error. If you have learned numerical analysis lessons, you will notice that big number will 'eat' sma...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
how to process the data in a file and repeat the procedure for different folders?
Here is an example for reading files and changing its content q = 0.1:0.1:2; folder = arrayfun(@(i)['surface\',num2str(q(i)),'...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
About the use of find
Find is not at all faster than logical inices. IF you know how to use logical indices to get elements from matrix. I believe yo...

environ 4 ans il y a | 0

Charger plus