답변 있음
gernerating standard normal variable in matlab
at what value of n will i get the value close to identity? Well, with your current code, z will always contain only ones, so th...

거의 3년 전 | 0

| 수락됨

답변 있음
Why am I getting Empty sym: 0-by-1, everything in SYMS is just equal to itself, the eqn1 is working properly comparing the correct things, but not working properly, pleasehelp
Look at your first equation. You have Vb set to 3 different literal constants. How can those equalities be simultaneously satisf...

거의 3년 전 | 0

답변 있음
How best to overlay bar graphs from histcounts of different data?
A solution with interlacing: [v1, e1] = histcounts([2 5 3.4 5.3 5 4 8 7],linspace(3,6,4)); [v2, e2] = histcounts([3.4 5.5 6.4 ...

거의 3년 전 | 1

| 수락됨

답변 있음
How best to overlay bar graphs from histcounts of different data?
Maybe make the bars semi-transparent? You can also play with the edge thicknesses to emphasize the area of inclusivity of the ba...

거의 3년 전 | 1

답변 있음
Dot notation and curly braces with TABLE
In Matlab, there are circumstances in which indexed assignments will convert the type of the right hand side in order to be cons...

거의 3년 전 | 0

답변 있음
Unwanted black background on a figure
I have no idea why it's like this. That seems to be the default color scheme, judging from this doc page, https://www.mathwork...

거의 3년 전 | 1

| 수락됨

답변 있음
if loop to find values in a variable
One possibility t = [4 5 7 8 10 11 12 15 17 20 22 24 26 27 28]; Q = [1 3 4 1 5 8 4 2 6 1 4 2 8 3 5]; p = 10; np = 3; c ...

거의 3년 전 | 0

답변 있음
Is there a way to speed up the computation of a piecewise defined function?
Use logical indexing, %Option 1.1 x=-10:10; y=x; y(x<=-5)=-2; p=abs(x)<5; y(p)=sin(x(p)); struct.x=x; struct.y=y;...

거의 3년 전 | 0

답변 있음
After migrating from MATLAB 2020b to 2023a my cpp application can't load mcc DLL
It sounds like your code is linking to the 2020b Matlab Runtime, instead of the newer one. If you know how to adjust that, you p...

거의 3년 전 | 0

답변 있음
Find values of two variables corresponding to query points of two matrices.
You should use fsolve or fminsearch to solve the original equations. Both of these are iterative solvers requiring an initial gu...

거의 3년 전 | 0

답변 있음
fminbnd error in calculating of solar cell efficiency with detailed balance
Perhaps you meant to have, F = @(V) norm( V.*-q.*(Nabs - Fluxfunction(Eg, Egmax, Tc,V)) ); Otherwise, it is not clear how t...

거의 3년 전 | 0

| 수락됨

답변 있음
Using different line style to generate plot
N = 10:20:500; err = rand(6,numel(N)); %fake h = loglog(N,err'); [h.LineStyle]=deal('-','--','-.',':','--','--'); [h(end-1...

거의 3년 전 | 1

| 수락됨

답변 있음
Function in MATLAB's path not call-able by another function in MATLAB's path despite both functions being call-able in Command Window
Possibly mproc or one of its callers has path-altering commands that temporarily remove cmap from the path. To be certain, we wo...

거의 3년 전 | 0

답변 있음
Error using pcread and pcshow
I wouldn't know how to do all the image processing and segmentation work that I could do in a simpler and more direct way with t...

거의 3년 전 | 0

답변 있음
How do I fix "Index exceeds the number of array elements"?
Well, period=50 so x1(period+1:2*period) is the same as x1(51:100). Since x1 has length 50, indexing it from 51:100 won't work. ...

거의 3년 전 | 0

답변 있음
Function in MATLAB's path not call-able by another function in MATLAB's path despite both functions being call-able in Command Window
So this specific line of code is just refusing to work for seemingly no reason. Maybe there is some invisible character in tha...

거의 3년 전 | 0

답변 있음
Can I use parfeval in App Designer to plot to a UIAxes while the code keeps running?
A mechanism equivalent to .mat file saving is how data is transferred to parpool workers. The plotFcn that you give to parfeval ...

거의 3년 전 | 1

| 수락됨

답변 있음
have an array of inputs instead of constants
Just concatenate all the constants into a vector and bring that into Simulink, constants=[m,alp_ang,...,MaxBrk]

거의 3년 전 | 1

답변 있음
How can I find fitness values of optimized results in gamultiobj tool?
The fval output from gamultiobj should give you those values: [x,fval] = gamultiobj(___)

거의 3년 전 | 0

답변 있음
How do I extract a structure array from a single dynamic structure without using for loops?
There is no way to avoid for-loop speed when dealing with structs and cells. Below is a way to abbreviate the syntax, but both n...

거의 3년 전 | 0

| 수락됨

답변 있음
Plot 2d images into Cylindrical 3D image with degree increment
There are several applicable File Exchange contributions. Here are 2 of them, https://www.mathworks.com/matlabcentral/fileexcha...

거의 3년 전 | 1

답변 있음
concatenate array of structures with same field names
So why is it that Matlab cannot use fread to read a structured file? Not sure how fread is implemented (does it use C++ fread or...

거의 3년 전 | 0

| 수락됨

답변 있음
double conditional in one line
You need to be using '&' x=0.23; 0<x & x<1

거의 3년 전 | 0

답변 있음
Extract pixels inside the area between 2 edge lines
[m,n]=size(I); mask=poly2mask(POLYOUT.Vertices(:,2),POLYOUT.Vertices(:,1), m,n); pixels=I(mask)

거의 3년 전 | 0

| 수락됨

답변 있음
Minimum distance between 2 points
Use pdist2

거의 3년 전 | 0

답변 있음
Concatenate string with table
writematrix(header,'filename.txt'); writetable(tab_data,'filename.txt',WriteVariableNames=false,WriteMode='append');

거의 3년 전 | 0

| 수락됨

답변 있음
Vectorization/increase efficiency of nonconvex optimization problem using systematic initializations
It is not clear that a vectorized approach would help you, because the time for each of the optimizations to converge would be ...

거의 3년 전 | 0

| 수락됨

답변 있음
Constants that cannot be delete with CLEAR
You could make the constants the Constant properties of a class. Then they can be reused even after issuing clear classdef myco...

거의 3년 전 | 1

| 수락됨

답변 있음
Optimization not working because fitness function must be a function handle
problem.objective = ... @(x) [+0.0365*x(1) - 0.18*x(2) + 0.389; 0.0435*x(1) - 0.266*x(2) + 4.2*x(3) + 0.019*x(1...

거의 3년 전 | 0

답변 있음
Add properties to edit field in app designer
It might be better to use a 3rd party tool like, https://www.mathworks.com/matlabcentral/fileexchange/19729-passwordentrydialog...

거의 3년 전 | 0

| 수락됨

더 보기