Beantwortet
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 Tage vor | 0

Beantwortet
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 Tage vor | 0

Beantwortet
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 Tage vor | 0

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

29 Tage vor | 0

Beantwortet
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 Tage vor | 1

| akzeptiert

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

etwa ein Monat vor | 0

Beantwortet
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 ...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
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...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
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...

etwa ein Monat vor | 0

Beantwortet
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])

etwa ein Monat vor | 0

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

etwa ein Monat vor | 0

Beantwortet
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 ...

etwa ein Monat vor | 0

Beantwortet
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(...

etwa ein Monat vor | 0

Beantwortet
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...

etwa ein Monat vor | 1

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

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
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

etwa ein Monat vor | 0

Beantwortet
Generate list of frequencies evenly spaced in logarithmic plot
F = linspace(0.2,628,100) semilogy(F)

etwa ein Monat vor | 0

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

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
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...

etwa ein Monat vor | 0

Beantwortet
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

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
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...

etwa ein Monat vor | 0

Beantwortet
"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...

etwa ein Monat vor | 0

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

etwa ein Monat vor | 1

Beantwortet
Why won't my function display any of the required text?
%FinalGrade = FinalMark;

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
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 ...

etwa ein Monat vor | 1

Beantwortet
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...

etwa ein Monat vor | 1

| akzeptiert

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

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
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 ...

etwa 2 Monate vor | 0

Beantwortet
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);

etwa 2 Monate vor | 0

Mehr laden