回答済み
I get complex numbers while using "acosd" function
Probably you might have evaluated the equation using incorrect parenthesis enclosing only the dot product for acosd function an...

3年以上 前 | 0

| 採用済み

回答済み
Use cmd to execute .exe
Use a fullfile function to read the files from whichever directory and /or drive they are located as shown below. out = filer...

3年以上 前 | 0

回答済み
I have calculated 4 standard deviation values for each row of a 4x3 matrix. How to convert these 4 values into a single standard deviation value for the whole matrix?
a=[2 3 5;12 67 54;3 7 8;14 9 23] b = std(a,0,"all") Use the *all* option to get the SD for whole matrix

3年以上 前 | 0

回答済み
is possible to update parameter function ?
call the function xx inside the Main function using a loop. This would repeatedly call the function xx and update the value of...

3年以上 前 | 0

回答済み
fun is doing odd things
fun is defined as anonymous function with two input parameters. In the 1st approach, you are defining both parameters as argume...

3年以上 前 | 0

回答済み
Normalized Wind Rose Plot help
One way is to use the data for air pollution concentration directly and compare with direction data as shown below Data = load(...

3年以上 前 | 0

回答済み
Comparing two tables and replacing categorical column, row wise.
Hi @Giridhar sai pavan kumar Konduru, Here's one way to compare Label columns from two tables. Do you also want to add the ...

3年以上 前 | 0

回答済み
In app designer the timer call back keeps running after xing out of application.
can you try placing the delete(t) inside the timercallback function ? function startupFcn(app) %Creating timer object ...

3年以上 前 | 0

回答済み
Average every 3 rows of 1 column in a 12 x 8 array
Data = [ 34 6 4 -6.60874766440390 -40.7725049965035 16217 0.289000000000000 1.02200000000000 35 6 5 -6.54326464638770 -40.5611...

3年以上 前 | 0

回答済み
Dimensionality error with plot
Pdata = reshape(pressureData(1,1,:),1,[]) plot(t,Pdata)

3年以上 前 | 1

回答済み
Incorrect argument data type or missing argument in call to function 'sqrt'.
clc Lc0 = ureal('Lc0',4.2e-3,'percent',10) Lg0 = ureal('Lgo',2.5e-3,'percent',30) Cf0 = ureal('Cf0',8e-6,'percent',10) ...

3年以上 前 | 0

回答済み
Filtering out y values
Here's what you can do to filter y values from a dataset , by applying a condition x = 0:8e4; y = 20*rand(length(x),1); scatt...

3年以上 前 | 0

| 採用済み

回答済み
regarding matlab simulink.
Hi @LAXMIDHAR, Delete any files that are previously named untitled in your parent and/or working directory. Close all previ...

3年以上 前 | 0

回答済み
Adding more circles to the scatter plot legend
If you want different colors, call the scatter function seperately for each point. Currently, you are assigning the same color ...

3年以上 前 | 0

回答済み
How to remove zero from float value.?
x = [0.9093 0.9074 0.9014] vpa(round(x,1),2)

3年以上 前 | 0

| 採用済み

回答済み
Arrhenius model fitting using fminsearch
Give a suitable values for intial guess as inputs to objective function, and set values for physical constants in correct units...

3年以上 前 | 0

回答済み
Help with solve and symbolic equations
In the first approach, the LHS of both equations are same and when you try to solve only for variable i0 using two equations it ...

3年以上 前 | 0

回答済み
Inverse input/output of switch case function
my_func('word j') function [y] = my_func(x) switch x case 'word i' y = 'name a'; % sprintf('%s'...

3年以上 前 | 0

回答済み
error using horzcat function
theta = [theta(:,1:6),zeros(size(theta,1),1)];

3年以上 前 | 0

| 採用済み

回答済み
export structs within structs
Use a for loop to export the struct data to a cell array for J = 1:length(QSMs2.treedata) S{J} = QSMs2.treedata(J); end

3年以上 前 | 0

回答済み
solve thFile: Copy_of_heattransfer.m Line: 18 Column: 13 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for misme error
k_steel = 50; %w/m-k conductivity k_copper = 500; [xs,ts,u_steel,flux_s] = FDM(k_steel); % Temperature distribution in steel r...

3年以上 前 | 0

回答済み
How to check for strings in a cell array using ismember.
ismember(A{i}(j,1), B{i})

3年以上 前 | 0

| 採用済み

回答済み
Writing multidimensional array to text file with fprintf
fprintf(fid, '%0.4f \t\n',u10(:,:,i)); fprintf(fid, '%0.4f\t\n',v10(:,:,i)); fprintf(fid, '\n'); Delete the transpose and...

3年以上 前 | 0

回答済み
How to create an empty plotting area, with log X axis?
If you use xlim & ylim it creates an empty plot with axes information having that range specified. Make them empty xlim([0.01,...

3年以上 前 | 0

| 採用済み

回答済み
Every time I run this code, I get "Error using plot Vectors must be the same length.
x1Range = 0:h1:2; % yEuler1 & yMidpoint1 vectors x2Range = 0:h2:2; % yEuler2 & yMidpoint2 vectors x3Range = 0:h:2;% yHue...

3年以上 前 | 1

回答済み
How to access column of double in struct array?
x(i,:) = y(i,:) = Date(i,:) = % rename date in output vector to Date as its already used in the struct Use the a...

3年以上 前 | 0

回答済み
a little bug in function "plot/stem"
a = ones(1179080,1); stem(a(1:100000:end))

3年以上 前 | 0

回答済み
Why don't the markers have the correct color in the legend?
A1 = randi(10, [5 5]); B1 = randi(10, [5 5]); A2 = randi(10, [5 5]); B2 = randi(10, [5 5]); h1=scatter(A1,B1,'g'); hold on ...

3年以上 前 | 1

回答済み
updating tiledlayout in a loop - "Invalid or deleted object"
Delete the hold on commands that are present AFTER the scatter commands and place it BEFORE the scatter commands. Then add t...

3年以上 前 | 0

| 採用済み

回答済み
Symbolic equation system - Hi! Can someone please tell me why this algortim is not working? I know resultant values for XA and T are 0.2 and 657 but i want it to work.
If you use vpaintegral instead of int and it can be solved using the vpasolve function.. Also, the integral needs to done w.r....

3年以上 前 | 0

さらに読み込む