回答済み
Undefines function 'fsic' for input arguments of type 'cell'
It could be the case that the required function is inside a subfoler. I would try to use addpath( genpath( "C:\Users\Bryher\One...

3年以上 前 | 0

回答済み
How do I split this data into different column and write it back in a text file with an extention .bdf?
Hi @Adeline War, assumig you have the data in a string array, you can use the procedure below. MyData = ["MAT1,88813,210000.0,,...

3年以上 前 | 0

回答済み
Epoch time conversion using datetime function
One approach would be to add the "ticks per second" parameter, in your case set it to 1000: EpochVal = 1650000000000; % conv...

3年以上 前 | 0

回答済み
Adding time to time string
Note that it would be much easier to answer if you would have added exmaple data, anyhow you can use the following approach: % ...

3年以上 前 | 0

回答済み
How to generate noise signal with desired max and min signal?
if you just want a random signal you can try the following: MinVal = 2 ; MaxVal = 4; numPoints = 1000; Data = MinVal + rand(...

3年以上 前 | 0

| 採用済み

回答済み
Struggling to retrieve table data as numeric values
Hello, normally str2double should work. See below for an example. % allocate the table varTypes = ["double","string","string"]...

3年以上 前 | 0

| 採用済み

回答済み
Oldest person in the room code not working
Hello, the issue is that the variable "name" is a char array in your case, hence it returns a char. It will be easier to store ...

3年以上 前 | 1

回答済み
How to extract one data from various mat files to one txt file
assuming you want to append the data to the same text file, you can generate the name of the file in a loop: numFiles = 10; fo...

3年以上 前 | 1

| 採用済み

回答済み
Plot 3D Animation
not sure witouth some example data, could you share for instance the struct holding the time history of the solution? As a tip,...

3年以上 前 | 1

| 採用済み

回答済み
Create a 1D row vector (5,1) with middle elements = T.
I guess this was only a typographical error, where you inserted the variable 'T' into 'temperature', see below for the adjusted ...

3年以上 前 | 0

回答済み
Contour plot over a specified region
Using the patch command u can plot as many triangular or rectangular shapes at the same time. Just build the grid (i.e. the 've...

3年以上 前 | 0

回答済み
Matrix caculation about NAN and IFN
you can use indexing to avoid deviding by zero: A = [1 0 0; 1 1 0; 3 4 2; 2 3 1]; B = [1 0 2;1 0 14; 0 1 11; 1 1 10]; C = ze...

3年以上 前 | 0

| 採用済み

回答済み
set values after certain value is exceeded to 0
One approach is to first look for the treshold value, build a logical array using that values and then use it together with an a...

3年以上 前 | 0

| 採用済み

回答済み
how to plot deformation with value from ansys to matlab
you can use the patch command, see the method below coordinates = readmatrix("coordinates.csv"); displacements = readmatrix(...

3年以上 前 | 1

| 採用済み

回答済み
Sort according to specific string contained in file name
You can try spliting the lists, then ordering them and then using the indixes to sort the original list: ListA = ["010822_AB030...

3年以上 前 | 0

| 採用済み

回答済み
Extract certain numbers from a text file.
see below for one method to do this % read the file MyData = readmatrix('example_txt_file.txt'); % specify frequency valu...

3年以上 前 | 0

回答済み
How to seprate elements based on value counts In MATLAB
If i understand it correctly, you want to keep only the unique values from each cell and find the overal "count" of each value? ...

3年以上 前 | 0

回答済み
Truble codeing a diamond lattice
You need the additional subroutines. In this case "diamondLattice.m" and all other routines accompined by it... After a quick b...

3年以上 前 | 0

| 採用済み

回答済み
Making a 3D plot and rotating it
@Sam Chak as requested a seperate answer to show the "patch" approach As mentioned in the comments, there remains a part to com...

3年以上 前 | 1

| 採用済み

回答済み
How can I name the x-axis elements on a plot?
Here you go, you can overwrite the ticks with a string: % data M = [1 2 3 4 5 6 7 8 9 10 11 12]; Months = ["Jan","Feb","Mar",...

3年以上 前 | 1

| 採用済み

回答済み
How to find the time between two spikes?
hello, you can use the "findpeaks" routine do achieve this, see below for the code best regards % first run the main code M...

3年以上 前 | 1

| 採用済み

回答済み
Making a 3D plot and rotating it
To create a figure like the tower of hanoi, you can try something like the code below. Have fun :) edit: added the rotation a...

3年以上 前 | 1

回答済み
How to plot graph between "W" and "r" for multiple values of "psi" on the same figure?
the easiest would be to "hold" the plot and loop over the values, see below % plotting graphs syms r psi_list = [0.1, 0.01, 0...

3年以上 前 | 0

| 採用済み

回答済み
how to delete all row contain a 1's and how to delete a column contain 1's. Q=[3 1 1 0 0 1;1 3 1 0 1 0;1 1 3 1 0 0;0 0 1 3 1 1;0 1 0 1 3 1;1 0 0 1 1 3]
you can use some logic to find them: % using example data Q = [3 1 1 0 0 1;1 3 1 0 1 0;1 1 3 1 0 0;0 0 1 3 1 1;0 1 0 1 3 1;1...

3年以上 前 | 0

回答済み
Is there a way to write values ​​where the last digits of the value are the ones that separate them, but only use 6 digits, plus the exponent?
the only way I can think of that matlab can deal with such big numbers and precision is by treating them as strings ( perhaps it...

3年以上 前 | 0

回答済み
To minimize the charging cost of electric vehicles
Which error do you obtain? I changed if j<=EVSE1_arr_time & j<=EVSE1_leave_time into if all(j<=EVSE1_arr_time) && all(j<=E...

3年以上 前 | 0

回答済み
How to store value in the table using looping
hello, below you can find an example on how to store data in a table in a loop numLoop = 10; % indicate the number of loops.....

3年以上 前 | 0

| 採用済み

回答済み
how to resize a matrix two pair of two numbers stacked together?
you can do this with the reshape command: a = (1:16)' b = reshape(a, 4, [] )

3年以上 前 | 0

回答済み
Removal of empty cells in an array
this was due to the indexing, you were putting the temporary data into "nn{n1,n} = F1{n1}", thus at the second run of "n" a new ...

3年以上 前 | 0

| 採用済み

回答済み
how to plot a plane using equations of planes?
does this result in what you need? Edit: update to plot a plane at each point and plot the normal using quiver XYZ = [ 126.604...

3年以上 前 | 0

| 採用済み

さらに読み込む