MATLAB QUESTIONS & EXPERT ANSWERS

Ask an expert. Trust the answer.
Your academic and career questions answered by verified experts.

Illustration
How to replace the non zero values of a matrix with another value?
John D'Errico - 2023-04-28

How to replace the non zero values of a matrix with another value?   If there is a matrix 5*5 and it contains zero values, how can I keep the zero va...

cell array to char array?
raktim banerjee - 2023-04-28

Hello Sir!   How to convert a cell array to char array? I want to read 2 strings from a .txt file and want them in char type. if I do as follow those...

Incorrect number or types of inputs or outputs for function 'solve'.
joe892729 - 2023-04-24

sol=solve('0.005448=Is*(exp(0.6885/0.02587))*(1+(4.553/Va))','0.004205=Is*(exp(0.6814/0.02587))*(1+(5.795/Va))'); sol.Is sol.Va...

How to change property behavior for a mocked object
TADA - 2023-04-20

I'm trying to use the mocking framework for unit tests   I'm trying to make the property of a mock object return another mock object, but the behavio...

How to add together values in matrix and replace the empty spaces with zeroes
Elias Huse - 2023-04-20

I have used a code that was written in someone elses previous question, that adds together all values over 0, after each zero.   So if you had : [0 0...

Want to insert a matrix in a for loop and change it with a variable
Ashi Khajotia - 2023-04-20

Hello,   So, I have a variable phi(1x41) changing with lambda(1x41) and there is matrix (2x2) inside a for loop that needs to be changed with phi but...

How to return random unique values based only on the value in each row for the first colomn?
Aron - 2023-04-20

To get a sense of what I am trying to do:   A = [1, 15200, 3, 5, 7; 15200, 15200, 15200, 7,0; 1,1,1,1, 15200; 9200, 1, 1,1,1]; [val] = max(A, [], 2);...

Detection of stars from the detected objects.
jyothsna chennareddy - 2023-04-17

Sir, My project is "Comets recognition from satellite images".I detected the objects from the image and the objects that are dtetected in the order of...

Help increasing the speed of a piece of code
Simone A. - 2023-04-17

Dear all,   Plain summary: I have a temperature matrix and I need to find the average temperature of the 8 pixels surrounding each pixel.   I need t...

Get a Free Consultation or a Sample Assignment Review!