Community Profile

photo

Tasos Apostolopoulos


Last seen: 1 month ago Active since 2022

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Content Feed

View by

Question


Its says error :Variable im_final must be of size [691 546]. It is currently of size [546 691]. Check where the variable is assigned a value. I canont figure it out
fid=fopen('Alien_Message'); data = fread(fid,[1 inf],'uint8'); %data is size 1x402741 fclose(fid); % Βρείτε το μήκος της γραμ...

3 months ago | 0 answers | 0

0

answers

Question


When i run my code it says Unrecognized function or variable A.
function res = my_matlab_function(A,N) A=4; N=30; y(1)=1/2*(3+(A^2/3)); y(2)=1/2*(y(1)+(A^2/y(1))); y(3)=1/2*(y(2)+(A^2/y(2...

5 months ago | 2 answers | 0

2

answers

Question


i want o calculate the sphere radius as a function of V where V=pi ,but i can not get the right result
function [rad1, rad2] = my_eval_parameters(E_C,V_S) rad1=sqrt(E_C/pi); rad2= (3*V_S/4*pi)^(1/3); %nthroot(3*V_S/4*pi,3)...

5 months ago | 1 answer | 0

1

answer

Question


i dont get why it says Unrecognized function or variable 'Nbin when i run it
clear clc clf sum1=0; N = 10000; xx=0:0.01:19; y1=(xx/2.89).*exp(-xx.^2/5.78); plot(xx,y1,'b','linewidth',3) hold on ...

5 months ago | 1 answer | 0

1

answer

Question


i have a function and i need to find the output of the last value. y(n)=1/2*(y(n-1)+A^2/y(n-1)) 0<=n<=N-1 (N=30 A=4),When i run it says output arguments not assignet.
function res = my_matlab_function(A,N) y(1)=1/2*(3+(A^2/3)); y(2)=1/2*(y(1)+(A^2/y(1))); for n=2:(N-1) y(n)=1/2*(y(n-1)+...

5 months ago | 2 answers | 0

2

answers

Question


i can not figure out what is wrong with my code,when i call my function it does show eny outpout
function [out,temp]=zari(N) x1=0; %to plithos Z1 x2=0; %to plithos Z2 x3=0; %to plithos Z3 x4=0; %to plithos Z4 sum1=0; ...

6 months ago | 1 answer | 0

1

answer