λ‹΅λ³€ 있음
Necesito calcular valor de 𝑦 para una ecuaciΓ³n matematica de y = a la raiz de un valor usando funciones predefinidas y no se como arrancar
Example: syms x e = exp(sym(1)); y = e + sqrt(x^3 + 5*x^2 + 3*x - 11) subs(y, x, 2.5)

λŒ€λž΅ 1κ°œμ›” μ „ | 0

λ‹΅λ³€ 있음
MATLAB is deleting my negatives in matrix multiplication and i am confused
That code does not generally remove negatives. k1 = randn(4, 4) L1 = [01 01 0 0 0 0 0 0; 0 0 01 01 0 0 0 0; 0 0 0 0 ...

λŒ€λž΅ 1κ°œμ›” μ „ | 0

λ‹΅λ³€ 있음
Variable size signal for integrator in Simulink
Use an iterator subsystem to loop over the vector elements, integrating one by one. https://www.mathworks.com/help/ecoder/ug/fo...

λŒ€λž΅ 1κ°œμ›” μ „ | 0

λ‹΅λ³€ 있음
How to include text in m file as code?
Yes, it is possible. What you need to do is create a function file named data.m that looks something like function datastruct...

λŒ€λž΅ 1κ°œμ›” μ „ | 0

λ‹΅λ³€ 있음
How to use a for loop to get previous values to calculate next one
@Deepak correctly points out problems with indexing at 0 or -1. But that error would have priority . Because that error does not...

λŒ€λž΅ 1κ°œμ›” μ „ | 0

λ‹΅λ³€ 있음
Read/Write Data from .dat file Problem
A = readmatrix('DMIR22345.Dat');%Read first file.dat B = readmatrix('DMIR2235.Dat');%Read sconde file.dat filename = 'Data1...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 0

λ‹΅λ³€ 있음
Find ratio of data
Ratios = YourData(2:end,:) ./ YourData(1:end-1,:);

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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.

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 0

| 수락됨

λ‹΅λ³€ 있음
Reading Bytes from Arduino to MATLAB
https://www.mathworks.com/help/instrument/serialport.read.html data = read(device,count,datatype) reads the number of v...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 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...

λŒ€λž΅ 1κ°œμ›” μ „ | 1

| 수락됨

더 보기