Answered
hi can anyone tell me what is wrong with my morse code encoder and decoder gui program
Read the comments in your code: function edit1_CreateFcn(hObject, eventdata, handles) % hObject handle to edit1 (see GCBO) ...

4 years ago | 0

Answered
how to make this code make the output as an image?
out(i,j) = 255 - in2; You are building up a numeric array, and that numeric array is your output variable. MATLAB does not hav...

4 years ago | 1

| accepted

Answered
Is there away to take a triple integral in respect to z,y, and x to find the volume of complex objects just from their bounds in the form of functions?
integral3() for numeric integration, provided that at least one of the sets of bounds are constants. Use D = @(x,y,z) ones(size...

4 years ago | 0

Answered
Why won't Matlab recognize my data?
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/965680/multiTimeline.csv'; opt = detectImportOptions...

4 years ago | 0

Answered
Creating string lines with Matlab Code
component_prefix = "comp"; component_number = 1:2; %row sys_prefix = "sys"; sys_numbers = (1:3).'; %column output = "mod...

4 years ago | 0

Answered
How can I solve 3 non linear functions simultaneously?
A different approach is to use the Symbolic Toolbox to arrive at formulas for the three different variables. solve() would proba...

4 years ago | 1

Answered
How to show the roots of a polynomial in complex numbers?
Do not use %d as that is for integers. There are multiple solutions. One of the ways, R2016b and newer, is fprintf('Root...

4 years ago | 0

Answered
Index in position 2 exceeds array bounds. (reason for error)
[height, width]=size(img); You are probably thinking that code is the same as temp = size(img) ; height = temp(1); ...

4 years ago | 0

Answered
How to use fread from TCP/IP of a string?
fread(server,6,'*char') Or better yet in theory: fread(server,6,'uint8=>char')

4 years ago | 0

Answered
partition column randomly in to three columns
L = size(YourData, 1); N = floor(L/3); G = [1*ones(1,N), 2*ones(1,N), 3*ones(1,N), randperm(3,L-3*N)]; G = G(randperm...

4 years ago | 0

Answered
Matlab code to Generate convolution integeral or convolution sum
conv(A, B) is the same as filter(A, fliplr(B)) when B is a row vector.

4 years ago | 0

| accepted

Answered
Reducing Computation Time!
for i=1:length(step) for a = 10^-26:step(i):10^-22 for b= 1:0.005:4 for c = 0.1:0.001:0.5 ...

4 years ago | 0

Answered
Error in dynamic system integration
set(0,'DefaultTextInterpreter', 'latex'); m = 0.127; M = 1.206; I = 0.001; L = 0.178; Bc = 5.4; Bp = 0.002; g = 9.8; h=0...

4 years ago | 0

Answered
How is the pre-process used in my Lecturer's code?
The section %% Show pre-processing and Feature Extraction results is used to display example results for very specific images...

4 years ago | 0

Answered
Making a graph with images
The following shows how to convert everything from after the first _ to the extension as a number. The degree can include fracti...

4 years ago | 0

| accepted

Answered
How to Run the Same MATLAB Code Through Two Laptops?
If your code is designed to use Parallel Computing Toolbox, then you can distribute workers between multiple nodes or hosts. How...

4 years ago | 0

| accepted

Answered
link between matlab and simulink
You can use sim() to execute a Simulink model from MATLAB. It would be common to use set_param first to configure the settings o...

4 years ago | 0

Answered
Adding a space into an array of string
sentence=sentence+" ";

4 years ago | 0

Answered
help ! how do i fix this error : Error using .* Integers can only be combined with integers of the same class, or scalar doubles.
The code you posted does not contain any .* operations, unless inside one of the calls. But S = Q'*pSrc; If I scan ...

4 years ago | 0

Answered
How do I solve this problem:(Problem 44958. Crop an Image)
* Rmin - first row to crop at * Cmin - first column to crop at * Rpix - number of row pixels to use * Cpix - number of column...

4 years ago | 1

| accepted

Answered
Genetic Algorithm. About ga function in matlab and feature selection
The function fun that you pass in, is responsible accepting trial vectors of model parameters, and evaluating the "cost" associa...

4 years ago | 0

| accepted

Answered
Same loop have different vector output
Ummmm... don't DO that! http://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynami...

4 years ago | 0

| accepted

Answered
how to check edit textbox for character arguements
text_setting=get(hObject,'string'); It says right there, text_setting will be a string (well, really, character vector rather t...

4 years ago | 0

| accepted

Answered
I want to extract cell array
rf_cell = cellfun(@(C) [datenum(C(:,1), C(:,2), C(:,3)), C(:,4)], unistsrfr1, 'uniform', 0); The result, rf_cell, will be a 1 x...

4 years ago | 0

Answered
Left arrow symbol meaning
It is a carriage return (char(13)) Use regexp() 'split'

4 years ago | 0

| accepted

Answered
dsolve problem gives error
xb not defined. You are trying to create two boundary conditions for the same function, such as diff(f(x)) evaluated at xb = ...

4 years ago | 0

Answered
Will the native version of MATLAB for apple silicon macs allow me to use the GPU for calculations, as the Intel version does for NVIDIA?
No. GPU for Apple Silicon is not being worked on, according to Mathworks. To clarify: it is not just a matter of it being in pro...

4 years ago | 3

Answered
My object isn't moving even though I have a keyboard input function.
viscircles() returns a Group object, that has two Children, each of which are a Line object. The two Line objects have exactly t...

4 years ago | 0

Answered
How to fix jump signal?
Perhaps do a movmean() and subtract that from the signal ? Though possibly you might not be happy with the results at the jump...

4 years ago | 0

Answered
Make the plot not hit the 'ceiling'
In the general form where you might have a number of different objects plotted in the same axes, and the data is not necessarily...

4 years ago | 0

| accepted

Load more