已解决


Create an index-powered vector
Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...

2 years 前

已解决


Summing Digits within Text
Given a string with text and digits, add all the numbers together. Examples: Input str = '4 and 20 blackbirds baked in a...

2 years 前

已解决


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

2 years 前

已解决


Find last zero for each column
Given a numeric array of arbitrary size, return the row index of the last zero for each column. If a column contains all nonzero...

2 years 前

已回答
Calculating a Fourier series with MATLAB manually problem
clear all close all hidden clc syms t % time syms n % number of terms to calculate the sum to syms T % period syms a_n(t, ...

2 years 前 | 0

已回答
Square wave with randomly varying frequency
To make it appear square, you need to delete the 2*pi part in the square function, and use randi instead of rand for scalar ...

2 years 前 | 0

已回答
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)

2 years 前 | 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...

2 years 前 | 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...

2 years 前 | 0

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

2 years 前 | 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...

2 years 前 | 1

| 已接受

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

2 years 前 | 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 ...

2 years 前 | 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...

2 years 前 | 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...

2 years 前 | 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])

2 years 前 | 0

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

2 years 前 | 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 ...

2 years 前 | 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(...

2 years 前 | 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...

2 years 前 | 1

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

2 years 前 | 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

2 years 前 | 0

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

2 years 前 | 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...

2 years 前 | 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

2 years 前 | 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...

2 years 前 | 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...

2 years 前 | 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 { }

2 years 前 | 1

加载更多