답변 있음
Read/Write Data from .dat file Problem

13일 전 | 0

답변 있음
Simply trying to find a value in the same row as my known value but in a different column.
rows = ismembertol( A(:,1), value); A( rows, 3) If this does not work, then either A(:,1) is not the same datatype as value, o...

13일 전 | 0

답변 있음
Find ratio of data
Ratios = YourData(2:end,:) ./ YourData(1:end-1,:);

13일 전 | 1

답변 있음
Can gamultiobj skip over instances where the function cannot solve?
gamultiobj() is constantly evaluating the objective function over a population of values. It does cross-over and mutation to pro...

15일 전 | 0

답변 있음
equation as an output
syms a x expr = a*x^2 try f = matlabFunction(expr, 'vars', x) catch ME warning(ME.message) end So you have the pr...

16일 전 | 0

답변 있음
Can plot markers be specified in an array?
h = plot(x, DATAMATRIX.'); set(h, {'Marker'}, CELL_ARRAY_OF_MARKERS(:)) where CELL_ARRAY_OF_MARKERS must be a cell string with...

16일 전 | 0

| 수락됨

답변 있음
How to use matlab in ssh server
There are two possibilities: You can install MATLAB on the server. Then you would copy your MATLAB files and data to the server...

16일 전 | 1

| 수락됨

답변 있음
Matlab Support for float32/single and float16/half datatypes in GPU Sparse Matrix Multiplication
This is not scheduled for R2024b. If there is a timeline, then it is not publically available.

17일 전 | 1

| 수락됨

답변 있음
how to velocize execution code
load('matlab_v1.mat') load('matlab_v2.mat') res = nan(size(v1)); res(v1 ~= 0) = 0; res(v2 ~= 0) = 1; res = reshape(fi...

17일 전 | 0

| 수락됨

답변 있음
Command Window, display line numbers?
In a fairly limited sense: You can get line numbers of a file that you are displaying. Use dbtype . For example dbtype which.m...

17일 전 | 0

답변 있음
How to resolve "Out of memory" error?? please look into the following code
If you use something like tspan = linspace(0, 2, 1001); then it should not run out of memory. It is running out of memory try...

17일 전 | 0

답변 있음
easy way to adjust axis labels to match x inputs
I doubt that is what you really want. figure ax = gca; x = 0:pi/20:3*pi; y = cos(x); plot(ax, x, y); xticks(ax, x); x...

17일 전 | 0

| 수락됨

답변 있음
In Matlab 2022b, how to import from guide to app designer
See https://www.mathworks.com/matlabcentral/fileexchange/66087-guide-to-app-designer-migration-tool-for-matlab

17일 전 | 0

답변 있음
Force saved figure to use a specific number of pixels
You can getframe() and imresize() to a fixed size The results are not likely to be satisfactory. Yes, you would get out the sam...

17일 전 | 0

답변 있음
Input frame size error - Audio Device Writer Simulink Block
The message is telling you that you must configure for at most 2 seconds of data for each invocation of the block. Normally the...

17일 전 | 0

답변 있음
Hi! I created a bad script a long time ago (months) and it has essentially destroyed my Matlab Online. I cannot run any other script without that old error occurring
You probably have a third-party function named height that is interfering with correct execution. which height Chances are tha...

17일 전 | 0

답변 있음
Reading Bytes from Arduino to MATLAB

17일 전 | 1

| 수락됨

답변 있음
Using symbolic solver, I seem to not be able to get a system of equations that give me a desired answer. Does a solution not exist?
The real values of Rn, Rp and Rx should be 2e6,1.5e5 and 700k. Those are inconsistent with the equations. Rn = 2e6; Rp = 1.5e...

18일 전 | 1

답변 있음
OPTIMOPTIONS does not support code generation for function 'ga'.
None of the functions in the Global Optimization Toolbox are supported for code generation. Your only hope would be turning off...

18일 전 | 1

답변 있음
I have some code that keeps failing to open and read two csv files out of four. Can someone explain what is wrong with either the code or the csv files
Replace h(k) = plot(test(k).disp,test(k).force/1000); set(h(k),'LineWidth',2); with h{k} = plot(test(k).disp,tes...

18일 전 | 0

| 수락됨

답변 있음
I'm trying to obtain a the transfer function of a circuit but keep getting "Unable to find explicit solution"
Under the assumption that all of the R values are greater than 0, and all of the C values are greater than 0, and s is greater t...

20일 전 | 1

| 수락됨

답변 있음
nested parallel optimization and parfor loops
If you specify the UseParallel option as true, then https://www.mathworks.com/help/gads/particle-swarm-options.html#bued1yt-1 ca...

21일 전 | 0

답변 있음
Error implementing Newton's Method
syms x f = @(x) x^3 - 2*x^2 - 5; df = diff(f,x) class(df) Notice that the class of df is sym. df is a symbolic scalar. Attem...

21일 전 | 0

답변 있음
If I deactivate my llicense on one computer to try Matlab on my new computer, can I reactivate the old computer Matlab if the new computer Matlab does not work?
Yes, you can deactivate on the new machine and re-activate on the original machine. However, each cycle will "use up" one transf...

21일 전 | 1

답변 있음
How to properly read a csv saved cell array.
csv files do not have the capacity to mark cell boundaries. You will never be able to do what you want with a csv file. xls a...

21일 전 | 1

| 수락됨

답변 있음
Inertia axes in an image

22일 전 | 0

답변 있음
Working With Reciprocal of Polynomials
It is difficult to tell what you want? syms x f = 10/((x+3).^2.*(x+5)) [N, D] = numden(f) C = coeffs(D, x) poly2sym(C, x) ...

22일 전 | 0

| 수락됨

답변 있음
How to Use Future System States to Make Real-Time Decisions in Simulink?
Suppose you are examining time ti . Then to integrate the ode over time ti to ti+2 takes time. But you need the integral to not ...

22일 전 | 0

| 수락됨

답변 있음
How can I plot a hyperbola?
hyperbola() function hyperbola() syms x y ; f = 0.4829 - (sqrt((95-x).^2-(0-y).^2)-sqrt((0-x).^2-(0-y).^2)); s...

22일 전 | 0

답변 있음
Syntax error , Component: Simulink, Category: Block error
Are you trying to use an Interpreted MATLAB Function block ? I think the formula is too complex for an Interpreted MATLAB block,...

22일 전 | 0