回答済み
Not getting the expected size matrix from evaluating a function handle that is equal to zero
h = @(x,y) zeros(10) [X, Y] = meshgrid(linspace(0, 2, 10)); Z = h(X,Y)

28日 前 | 0

回答済み
Unable to convert expression into double array. Cannot use quiver.
@Tai Nguyen, Use a different variable name for meshgrid outputs and use subs for symbolic expressions to replace with numeric ar...

28日 前 | 0

回答済み
Filters in pop up menu
Hi @Basanagouda Kenchanagoudra, You can use switch-case inside the Callback as shown below Item = get(handles.Module_PopUp,'S...

28日 前 | 0

回答済み
How to use Unicode numeric values in regexprep?
regexprep('Häagen-Dasz','ä','A') regexprep('Häagen-Dasz','ä','\x{C4}')

29日 前 | 0

回答済み
How to determe the Fatigue Damage according Miner's Rule via rainflow counting
Use linspace function in this line and evaluate the damage cigma_delta= linspace(1e-3,2*Yield,length(C_7.Values)); clear a...

29日 前 | 1

| 採用済み

回答済み
Add column in specific number range to available table
A.B(:,1) = (400:2970).'; % use transpose

約1ヶ月 前 | 0

回答済み
Error in paired t-test between corresponding elements.
% Define the data for two groups group1 = [10, 15, 20, 25, 30]; group2 = [12, 18, 22, 28, 32]; % Initialize array to store ...

約1ヶ月 前 | 0

| 採用済み

回答済み
Unable to perform assignment because brace indexing is not supported for variables of this type
Try the folliowing sLineMajor = simout.logsout.get("<B_x_VS_LaneBoundaries>").Values.LaneBoundaries(IdxLines); vLineWidth{Id...

約1ヶ月 前 | 0

| 採用済み

回答済み
How can I put an output from the display function in a table?
Section = ['254 x 254 x 73';'254 x 146 x 31';'254 x 146 x 31';'254 x 254 x 73';'254 x 254 x 73';'152 x 152 x 51';'152 x 152 x 51...

約1ヶ月 前 | 0

回答済み
Getting an error message when I use 'triangle()' function.
close all; clearvars; clc; t = 0:0.01:10*pi; f = 5; A = 10; y = A * sawtooth(2*pi*t); figure, plot(t,y); xlim([0 2*pi])

約1ヶ月 前 | 0

回答済み
Plotting Elastic Modulus Surface for TPMS Structure
direction = [cos(Theta(i))*sin(Phi(i)); sin(Theta(i))*sin(Phi(i)); cos(Phi(i))]

約1ヶ月 前 | 0

回答済み
How do I get this to display the maximum value of an array?
max = maxval(2:100) function max=maxval(x) a=1; N=length(x); for j=1:N %for loop is not correctly used if x(j)>a ...

約1ヶ月 前 | 0

回答済み
How to fine numerical gradient
There is another way to find the numerical gradient for the given function clear; clc; xs = linspace(1,2,100); ys = linspace(...

約1ヶ月 前 | 0

回答済み
problem of solving the PDE
Cut all the lines from 1 till 16 and place it after line 26. Function declarations must be done at the end of the code in your...

約1ヶ月 前 | 1

回答済み
How to plot five figures with different values?
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % This is a program for 1-D Photonic crystal...

約1ヶ月 前 | 0

| 採用済み

回答済み
How to plot different subplots changing y variable name on each iteration
title(name) If you want to plot the data need to be numeric arrays and not strings

約1ヶ月 前 | 0

回答済み
Generate list of frequencies evenly spaced in logarithmic plot
F = linspace(0.2,628,100) semilogy(F)

約1ヶ月 前 | 0

回答済み
Face Error "Input arguments must be numeric or objects which can be converted to double' while plotting Contour
contour(x1,x2,S11(x1,x2))

約1ヶ月 前 | 0

| 採用済み

回答済み
Not enough input arguements
anz=height(matrix) Put this line after *readtable* function where you read the data from Excel. The input to the function h...

約1ヶ月 前 | 0

回答済み
How can I use custom equation in cftool?
In the custom equation, function box , replace the x with z and define the equation as in your case in the box below

約1ヶ月 前 | 0

| 採用済み

回答済み
can someone assist I am struggling to convert the DHI DNI and GHI from W/m^2 to kWh/m^2
% solar irradiation on a HORIZONTAL SURFACE Cn = 0.7; % Clearance index I0 = 1353; % Solar constant latit...

約1ヶ月 前 | 0

回答済み
"Arrays have incompatible sizes for this operation" with for loop in integral2
input = @(y,s) y; N_it=10; output=cell(1, N_it); output{1}=input; density = @(z,t,s) exp( -(z.^2)./(2.*(s-t)) ./ (sqrt(2...

約1ヶ月 前 | 0

回答済み
Too many input arguments error when cell2mat and mean functions are used
bb = cell2mat(iniclu(i,1:count(i))); Use a ( ) in place of { }

約1ヶ月 前 | 1

回答済み
Why won't my function display any of the required text?
%FinalGrade = FinalMark;

約2ヶ月 前 | 0

| 採用済み

回答済み
I I wrote a command but for some reason it only prints the enthalpy value of water
There is a missing semicolon in this line, which makes it to print for each iteration in for loop H_water = (hf_w + hs_w); % a ...

約2ヶ月 前 | 1

回答済み
Need help to solve following problem.
X_ISMD = 995152.969208341; Y_ISMD = 996113.117131325; X_WGS84 =randn(172,1); Y_WGS84 =randn(172,1); for i = 1:172 D1(i...

約2ヶ月 前 | 1

| 採用済み

回答済み
How to simplify this script
Use abs percentage for error calculation percentage = abs((delta_y_ori-delta_y_raw)/delta_y_ori)*100;

約2ヶ月 前 | 0

| 採用済み

回答済み
how to make the contour line more curvy
xdata % your x data ydata % your y data zdata % your z data v = min(min(zdata)):1:max(max(zdata)) % add finer step size for ...

約2ヶ月 前 | 0

回答済み
Error code: "Index in position 2 exceeds array bounds (must not exceed 1)." when running code for two-element spring system
K(i,i) = K(i,i) + y(1,1); K(i,j) = K(i,j) + y(1,2);

約2ヶ月 前 | 0

さらに読み込む